cometlj/hexo-translate-title

安装后hexo g生成会有StatusCodeError错误

LourisXu opened this issue · 10 comments

TIM图片20190513001242
如图所示,StatusCodeError错误
只要卸载该插件又没有这个错误了

是否安装其他插件导致冲突,另外hexo版本,node版本发下

hexo: 3.8.0
node: v10.15.0

{
"name": "hexo-site",
"version": "0.0.0",
"private": true,
"hexo": {
"version": "3.8.0"
},
"dependencies": {
"gulp-htmlclean": "^2.7.22",
"gulp-htmlmin": "^5.0.1",
"gulp-imagemin": "^5.0.3",
"gulp-minify-css": "^1.2.4",
"gulp-uglify": "^3.0.1",
"hexo": "^3.7.0",
"hexo-deployer-git": "^1.0.0",
"hexo-filter-github-emojis": "^2.0.0",
"hexo-generator-archive": "^0.1.5",
"hexo-generator-category": "^0.1.3",
"hexo-generator-json-content": "^3.0.1",
"hexo-generator-tag": "^0.2.0",
"hexo-reference": "^1.0.4",
"hexo-renderer-ejs": "^0.3.1",
"hexo-renderer-marked": "^0.3.2",
"hexo-renderer-stylus": "^0.3.3",
"hexo-server": "^0.3.1",
"hexo-tag-aplayer": "^3.0.4",
"hexo-tag-dplayer": "^0.3.3",
"hexo-tag-echarts3": "^1.1.2"
},
"devDependencies": {
"gulp": "^4.0.0",
"gulp-cache": "^1.1.0",
"imagemin-pngquant": "^7.0.0"
}
}

baidu 的

 port: 443,
        host: 'fanyi.baidu.com',
        body:
         'from=zh&to=en&query=&transtype=realtime&simple_means_flag=3&sign=800951.580486&token=6902b9e28a39a2f4ea72c65f0724a170',
        path: '/v2transapi',
        _json: true,
        httpModule: [Object],
        agentClass: [Function: Agent],
        agent: [Agent],
        _started: true,
        href: 'https://fanyi.baidu.com/v2transapi',
        req: [ClientRequest],
        ntick: true,
        response: [Circular],
        originalHost: 'fanyi.baidu.com',
        originalHostHeaderName: 'host',
        responseContent: [Circular],
        _destdata: true,
        _ended: true,
        _callbackCalled: true },
     toJSON: [Function: responseToJSON],
     caseless: Caseless { dict: [Object] },
     body:
      '<html>\r\n<head><title>502 Bad Gateway</title></head>\r\n<body bgcolor="white">\r\n<center><h1>502 Bad Gateway</h1></center>\r\n<hr><center>yunjiasu-nginx</center>\r\n</body>\r\n</html>\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n' } }

youdao

 at processImmediate (internal/timers.js:443:21)
TypeError: Cannot read property '0' of undefined
    at /Users/jovi/Dropbox/onlineRepos/jovi/node_modules/hexo-translate-title/lib/util.js:140:48
    at tryCatcher (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:694:18)
    at _drainQueueStep (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:138:12)
    at _drainQueue (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:147:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:17:14)
    at processImmediate (internal/timers.js:443:21)
TypeError: Cannot read property '0' of undefined
    at /Users/jovi/Dropbox/onlineRepos/jovi/node_modules/hexo-translate-title/lib/util.js:140:48
    at tryCatcher (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:694:18)
    at _drainQueueStep (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:138:12)
    at _drainQueue (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:147:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:17:14)
    at processImmediate (internal/timers.js:443:21)
TypeError: Cannot read property '0' of undefined
    at /Users/jovi/Dropbox/onlineRepos/jovi/node_modules/hexo-translate-title/lib/util.js:140:48
    at tryCatcher (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:694:18)
    at _drainQueueStep (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:138:12)
    at _drainQueue (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:147:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:17:14)
    at processImmediate (internal/timers.js:443:21)
TypeError: Cannot read property '0' of undefined
    at /Users/jovi/Dropbox/onlineRepos/jovi/node_modules/hexo-translate-title/lib/util.js:140:48
    at tryCatcher (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:694:18)
    at _drainQueueStep (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:138:12)
    at _drainQueue (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:147:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:17:14)
    at processImmediate (internal/timers.js:443:21)
TypeError: Cannot read property '0' of undefined
    at /Users/jovi/Dropbox/onlineRepos/jovi/node_modules/hexo-translate-title/lib/util.js:140:48
    at tryCatcher (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:694:18)
    at _drainQueueStep (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:138:12)
    at _drainQueue (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:147:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:17:14)
    at processImmediate (internal/timers.js:443:21)
TypeError: Cannot read property '0' of undefined
    at /Users/jovi/Dropbox/onlineRepos/jovi/node_modules/hexo-translate-title/lib/util.js:140:48
    at tryCatcher (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:694:18)
    at _drainQueueStep (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:138:12)
    at _drainQueue (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:147:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:17:14)
    at processImmediate (internal/timers.js:443:21)
TypeError: Cannot read property '0' of undefined
    at /Users/jovi/Dropbox/onlineRepos/jovi/node_modules/hexo-translate-title/lib/util.js:140:48
    at tryCatcher (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:694:18)
    at _drainQueueStep (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:138:12)
    at _drainQueue (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:147:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:17:14)
    at processImmediate (internal/timers.js:443:21)
SyntaxError: Unexpected token o in JSON at position 1
    at JSON.parse (<anonymous>)
    at /Users/jovi/Dropbox/onlineRepos/jovi/node_modules/hexo-translate-title/lib/util.js:139:33
    at tryCatcher (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/promise.js:694:18)
    at _drainQueueStep (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:138:12)
    at _drainQueue (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:147:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/Users/jovi/Dropbox/onlineRepos/jovi/node_modules/bluebird/js/release/async.js:17:14)
    at processImmediate (internal/timers.js:443:21)

google

options:
   { method: 'GET',
     uri:
      'https://translate.google.cn/translate_a/t?client=t&sl=zh-CN&tl=en&hl=zh-CN$dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&ie=UTF-8&oe=UTF-8&clearbtn=1&otf=1&pc=1&ssel=0&tsel=0&kc=2&v=1.0&source=is&tk=293376.149886&q=axure%20rp%208%20%E5%BF%AB%E6%8D%B7%E9%94%AE%20%EF%BC%88win&mac%EF%BC%89',
     callback: [Function: RP$callback],
     transform: undefined,
     simple: true,
     resolveWithFullResponse: false,
     transform2xxOnly: false },
  response:
   IncomingMessage {
     _readableState:
      ReadableState {
        objectMode: false,
        highWaterMark: 16384,
        buffer: BufferList { head: null, tail: null, length: 0 },
        length: 0,
        pipes: null,
        pipesCount: 0,
        flowing: true,
        ended: true,
        endEmitted: true,
        reading: false,
        sync: false,
        needReadable: false,
        emittedReadable: false,
        readableListening: false,
        resumeScheduled: false,
        paused: false,
        emitClose: true,
        autoDestroy: false,
        destroyed: false,
        defaultEncoding: 'utf8',
        awaitDrain: 0,
        readingMore: false,
        decoder: null,
        encoding: null },
     readable: false,
     _events:
      [Object: null prototype] {
        end: [Array],
        close: [Array],
        data: [Function],
        error: [Function] },
     _eventsCount: 4,
     _maxListeners: undefined,
     socket:
      TLSSocket {
        _tlsOptions: [Object],
        _secureEstablished: true,
        _securePending: false,
        _newSessionPending: false,
        _controlReleased: true,
        _SNICallback: null,
        servername: 'translate.google.cn',
        alpnProtocol: false,
        authorized: true,
        authorizationError: null,
        encrypted: true,
        _events: [Object],
        _eventsCount: 9,
        connecting: false,
        _hadError: false,
        _parent: null,
        _host: 'translate.google.cn',
        _readableState: [ReadableState],
        readable: true,
        _maxListeners: undefined,
        _writableState: [WritableState],
        writable: false,
        allowHalfOpen: false,
        _sockname: null,
        _pendingData: null,
        _pendingEncoding: '',
        server: undefined,
        _server: null,
        ssl: [TLSWrap],
        _requestCert: true,
        _rejectUnauthorized: true,
        parser: null,
        _httpMessage: [ClientRequest],
        [Symbol(res)]: [TLSWrap],
        [Symbol(asyncId)]: 7542,
        [Symbol(kHandle)]: [TLSWrap],
        [Symbol(lastWriteQueueSize)]: 0,
        [Symbol(timeout)]: null,
        [Symbol(kBytesRead)]: 0,
        [Symbol(kBytesWritten)]: 0,
        [Symbol(connect-options)]: [Object] },
     connection:
      TLSSocket {
        _tlsOptions: [Object],
        _secureEstablished: true,
        _securePending: false,
        _newSessionPending: false,
        _controlReleased: true,
        _SNICallback: null,
        servername: 'translate.google.cn',
        alpnProtocol: false,
        authorized: true,
        authorizationError: null,
        encrypted: true,
        _events: [Object],
        _eventsCount: 9,
        connecting: false,
        _hadError: false,
        _parent: null,
        _host: 'translate.google.cn',
        _readableState: [ReadableState],
        readable: true,
        _maxListeners: undefined,
        _writableState: [WritableState],
        writable: false,
        allowHalfOpen: false,
        _sockname: null,
        _pendingData: null,
        _pendingEncoding: '',
        server: undefined,
        _server: null,
        ssl: [TLSWrap],
        _requestCert: true,
        _rejectUnauthorized: true,
        parser: null,
        _httpMessage: [ClientRequest],
        [Symbol(res)]: [TLSWrap],
        [Symbol(asyncId)]: 7542,
        [Symbol(kHandle)]: [TLSWrap],
        [Symbol(lastWriteQueueSize)]: 0,
        [Symbol(timeout)]: null,
        [Symbol(kBytesRead)]: 0,
        [Symbol(kBytesWritten)]: 0,
        [Symbol(connect-options)]: [Object] },
     httpVersionMajor: 1,
     httpVersionMinor: 1,
     httpVersion: '1.1',
     complete: true,
     headers:
      { 'content-type': 'text/html; charset=UTF-8',
        'x-content-type-options': 'nosniff',
        date: 'Mon, 20 May 2019 06:43:24 GMT',
        server: 'HTTP server (unknown)',
        'content-length': '1952',
        'x-xss-protection': '0',
        'alt-svc': 'quic=":443"; ma=2592000; v="46,44,43,39"',
        connection: 'close' },
     rawHeaders:
      [ 'Content-Type',
        'text/html; charset=UTF-8',
        'X-Content-Type-Options',
        'nosniff',
        'Date',
        'Mon, 20 May 2019 06:43:24 GMT',
        'Server',
        'HTTP server (unknown)',
        'Content-Length',
        '1952',
        'X-XSS-Protection',
        '0',
        'Alt-Svc',
        'quic=":443"; ma=2592000; v="46,44,43,39"',
        'Connection',
        'close' ],
     trailers: {},
     rawTrailers: [],
     aborted: false,
     upgrade: false,
     url: '',
     method: null,
     statusCode: 403,
     statusMessage: 'Forbidden',
     client:
      TLSSocket {
        _tlsOptions: [Object],
        _secureEstablished: true,
        _securePending: false,
        _newSessionPending: false,
        _controlReleased: true,
        _SNICallback: null,
        servername: 'translate.google.cn',
        alpnProtocol: false,
        authorized: true,
        authorizationError: null,
        encrypted: true,
        _events: [Object],
        _eventsCount: 9,
        connecting: false,
        _hadError: false,
        _parent: null,
        _host: 'translate.google.cn',
        _readableState: [ReadableState],
        readable: true,
        _maxListeners: undefined,
        _writableState: [WritableState],
        writable: false,
        allowHalfOpen: false,
        _sockname: null,
        _pendingData: null,
        _pendingEncoding: '',
        server: undefined,
        _server: null,
        ssl: [TLSWrap],
        _requestCert: true,
        _rejectUnauthorized: true,
        parser: null,
        _httpMessage: [ClientRequest],
        [Symbol(res)]: [TLSWrap],
        [Symbol(asyncId)]: 7542,
        [Symbol(kHandle)]: [TLSWrap],
        [Symbol(lastWriteQueueSize)]: 0,
        [Symbol(timeout)]: null,
        [Symbol(kBytesRead)]: 0,
        [Symbol(kBytesWritten)]: 0,
        [Symbol(connect-options)]: [Object] },
     _consuming: true,
     _dumped: false,
     req:
      ClientRequest {
        _events: [Object],
        _eventsCount: 5,
        _maxListeners: undefined,
        outputData: [],
        outputSize: 0,
        writable: true,
        _last: true,
        chunkedEncoding: false,
        shouldKeepAlive: false,
        useChunkedEncodingByDefault: false,
        sendDate: false,
        _removedConnection: false,
        _removedContLen: false,
        _removedTE: false,
        _contentLength: 0,
        _hasBody: true,
        _trailer: '',
        finished: true,
        _headerSent: true,
        socket: [TLSSocket],
        connection: [TLSSocket],
        _header:
         'GET /translate_a/t?client=t&sl=zh-CN&tl=en&hl=zh-CN$dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&ie=UTF-8&oe=UTF-8&clearbtn=1&otf=1&pc=1&ssel=0&tsel=0&kc=2&v=1.0&source=is&tk=293376.149886&q=axure%20rp%208%20%E5%BF%AB%E6%8D%B7%E9%94%AE%20%EF%BC%88win&mac%EF%BC%89 HTTP/1.1\r\nhost: translate.google.cn\r\nConnection: close\r\n\r\n',
        _onPendingData: [Function: noopPendingOutput],
        agent: [Agent],
        socketPath: undefined,
        timeout: undefined,
        method: 'GET',
        path:
         '/translate_a/t?client=t&sl=zh-CN&tl=en&hl=zh-CN$dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&ie=UTF-8&oe=UTF-8&clearbtn=1&otf=1&pc=1&ssel=0&tsel=0&kc=2&v=1.0&source=is&tk=293376.149886&q=axure%20rp%208%20%E5%BF%AB%E6%8D%B7%E9%94%AE%20%EF%BC%88win&mac%EF%BC%89',
        _ended: true,
        res: [Circular],
        aborted: false,
        timeoutCb: null,
        upgradeOrConnect: false,
        parser: null,
        maxHeadersCount: null,
        [Symbol(isCorked)]: false,
        [Symbol(outHeadersKey)]: [Object] },
     request:
      Request {
        _events: [Object],
        _eventsCount: 5,
        _maxListeners: undefined,
        method: 'GET',
        uri: [Url],
        readable: true,
        writable: true,
        explicitMethod: true,
        _qs: [Querystring],
        _auth: [Auth],
        _oauth: [OAuth],
        _multipart: [Multipart],
        _redirect: [Redirect],
        _tunnel: [Tunnel],
        _rp_resolve: [Function],
        _rp_reject: [Function],
        _rp_promise: [Promise],
        _rp_callbackOrig: undefined,
        callback: [Function],
        _rp_options: [Object],
        headers: {},
        setHeader: [Function],
        hasHeader: [Function],
        getHeader: [Function],
        removeHeader: [Function],
        localAddress: undefined,
        pool: {},
        dests: [],
        __isRequestRequest: true,
        _callback: [Function: RP$callback],
        proxy: null,
        tunnel: true,
        setHost: true,
        originalCookieHeader: undefined,
        _disableCookies: true,
        _jar: undefined,
        port: 443,
        host: 'translate.google.cn',
        path:
         '/translate_a/t?client=t&sl=zh-CN&tl=en&hl=zh-CN$dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&ie=UTF-8&oe=UTF-8&clearbtn=1&otf=1&pc=1&ssel=0&tsel=0&kc=2&v=1.0&source=is&tk=293376.149886&q=axure%20rp%208%20%E5%BF%AB%E6%8D%B7%E9%94%AE%20%EF%BC%88win&mac%EF%BC%89',
        httpModule: [Object],
        agentClass: [Function: Agent],
        agent: [Agent],
        _started: true,
        href:
         'https://translate.google.cn/translate_a/t?client=t&sl=zh-CN&tl=en&hl=zh-CN$dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&ie=UTF-8&oe=UTF-8&clearbtn=1&otf=1&pc=1&ssel=0&tsel=0&kc=2&v=1.0&source=is&tk=293376.149886&q=axure%20rp%208%20%E5%BF%AB%E6%8D%B7%E9%94%AE%20%EF%BC%88win&mac%EF%BC%89',
        req: [ClientRequest],
        ntick: true,
        response: [Circular],
        originalHost: 'translate.google.cn',
        originalHostHeaderName: 'host',
        responseContent: [Circular],
        _destdata: true,
        _ended: true,
        _callbackCalled: true },
     toJSON: [Function: responseToJSON],
     caseless: Caseless { dict: [Object] },
     body:
      '<!DOCTYPE html>\n<html lang=en>\n  <meta charset=utf-8>\n  <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">\n  <title>Error 403 (Forbidden)!!1</title>\n  <style>\n    *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}\n  </style>\n  <a href=//www.google.com/><span id=logo aria-label=Google></span></a>\n  <p><b>403.</b> <ins>That’s an error.</ins>\n  <p>Your client does not have permission to get URL <code>/translate_a/t?client=t&amp;sl=zh-CN&amp;tl=en&amp;hl=zh-CN$dt=at&amp;dt=bd&amp;dt=ex&amp;dt=ld&amp;dt=md&amp;dt=qca&amp;dt=rw&amp;dt=rm&amp;dt=ss&amp;dt=t&amp;ie=UTF-8&amp;oe=UTF-8&amp;clearbtn=1&amp;otf=1&amp;pc=1&amp;ssel=0&amp;tsel=0&amp;kc=2&amp;v=1.0&amp;source=is&amp;tk=293376.149886&amp;q=axure%20rp%208%20%E5%BF%AB%E6%8D%B7%E9%94%AE%20%EF%BC%88win&amp;mac%EF%BC%89</code> from this server.  <ins>That’s all we know.</ins>\n' } }

Google:

{ StatusCodeError: 403 - "<!DOCTYPE html>\n<html lang=en>\n  <meta charset=utf-8>\n  <meta name=viewport content=\"initial-scale=1, minimum-scale=1, width=device-width\">\n  <title>Error 403 (Forbidden)!!1</title>\n  <style>\n    *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}\n  </style>\n  <a href=//www.google.com/><span id=logo aria-label=Google></span></a>\n  <p><b>403.</b> <ins>That’s an error.</ins>\n  <p>Your client does not have permission to get URL <code>/translate_a/t?client=t&amp;sl=zh-CN&amp;tl=en&amp;hl=zh-CN$dt=at&amp;dt=bd&amp;dt=ex&amp;dt=ld&amp;dt=md&amp;dt=qca&amp;dt=rw&amp;dt=rm&amp;dt=ss&amp;dt=t&amp;ie=UTF-8&amp;oe=UTF-8&amp;clearbtn=1&amp;otf=1&amp;pc=1&amp;ssel=0&amp;tsel=0&amp;kc=2&amp;v=1.0&amp;source=is&amp;tk=890148.763482&amp;q=C++%E5%B9%B4%E5%8E%86%E6%98%BE%E7%A4%BA</code> from this server.  <ins>That’s all we know.</ins>\n"
    at new StatusCodeError (D:\hexo\node_modules\request-promise-core\lib\errors.js:32:15)
    at Request.plumbing.callback (D:\hexo\node_modules\request-promise-core\lib\plumbing.js:104:33)
    at Request.RP$callback [as _callback] (D:\hexo\node_modules\request-promise-core\lib\plumbing.js:46:31)
    at Request.self.callback (D:\hexo\node_modules\request\request.js:185:22)
    at Request.emit (events.js:182:13)
    at Request.<anonymous> (D:\hexo\node_modules\request\request.js:1161:10)
    at Request.emit (events.js:182:13)
    at IncomingMessage.<anonymous> (D:\hexo\node_modules\request\request.js:1083:12)
    at Object.onceWrapper (events.js:273:13)
    at IncomingMessage.emit (events.js:187:15)
    at endReadableNT (_stream_readable.js:1094:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  name: 'StatusCodeError',
  statusCode: 403,
  message:
   '403 - "<!DOCTYPE html>\\n<html lang=en>\\n  <meta charset=utf-8>\\n  <meta name=viewport content=\\"initial-scale=1, minimum-scale=1, width=device-width\\">\\n  <title>Error 403 (Forbidden)!!1</title>\\n  <style>\\n    *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}\\n  </style>\\n  <a href=//www.google.com/><span id=logo aria-label=Google></span></a>\\n  <p><b>403.</b> <ins>That’s an error.</ins>\\n  <p>Your client does not have permission to get URL <code>/translate_a/t?client=t&amp;sl=zh-CN&amp;tl=en&amp;hl=zh-CN$dt=at&amp;dt=bd&amp;dt=ex&amp;dt=ld&amp;dt=md&amp;dt=qca&amp;dt=rw&amp;dt=rm&amp;dt=ss&amp;dt=t&amp;ie=UTF-8&amp;oe=UTF-8&amp;clearbtn=1&amp;otf=1&amp;pc=1&amp;ssel=0&amp;tsel=0&amp;kc=2&amp;v=1.0&amp;source=is&amp;tk=890148.763482&amp;q=C++%E5%B9%B4%E5%8E%86%E6%98%BE%E7%A4%BA</code> from this server.  <ins>That’s all we know.</ins>\\n"',
  error:
   '<!DOCTYPE html>\n<html lang=en>\n  <meta charset=utf-8>\n  <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">\n  <title>Error 403 (Forbidden)!!1</title>\n  <style>\n    *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}\n  </style>\n  <a href=//www.google.com/><span id=logo aria-label=Google></span></a>\n  <p><b>403.</b> <ins>That’s an error.</ins>\n  <p>Your client does not have permission to get URL <code>/translate_a/t?client=t&amp;sl=zh-CN&amp;tl=en&amp;hl=zh-CN$dt=at&amp;dt=bd&amp;dt=ex&amp;dt=ld&amp;dt=md&amp;dt=qca&amp;dt=rw&amp;dt=rm&amp;dt=ss&amp;dt=t&amp;ie=UTF-8&amp;oe=UTF-8&amp;clearbtn=1&amp;otf=1&amp;pc=1&amp;ssel=0&amp;tsel=0&amp;kc=2&amp;v=1.0&amp;source=is&amp;tk=890148.763482&amp;q=C++%E5%B9%B4%E5%8E%86%E6%98%BE%E7%A4%BA</code> from this server.  <ins>That’s all we know.</ins>\n',
  options:
   { method: 'GET',
     uri:
      'https://translate.google.cn/translate_a/t?client=t&sl=zh-CN&tl=en&hl=zh-CN$dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&ie=UTF-8&oe=UTF-8&clearbtn=1&otf=1&pc=1&ssel=0&tsel=0&kc=2&v=1.0&source=is&tk=890148.763482&q=C++%E5%B9%B4%E5%8E%86%E6%98%BE%E7%A4%BA',
     callback: [Function: RP$callback],
     transform: undefined,
     simple: true,
     resolveWithFullResponse: false,
     transform2xxOnly: false },
  response:
   IncomingMessage {
     _readableState:
      ReadableState {
        objectMode: false,
        highWaterMark: 16384,
        buffer: BufferList { head: null, tail: null, length: 0 },
        length: 0,
        pipes: null,
        pipesCount: 0,
        flowing: true,
        ended: true,
        endEmitted: true,
        reading: false,
        sync: false,
        needReadable: false,
        emittedReadable: false,
        readableListening: false,
        resumeScheduled: false,
        emitClose: true,
        destroyed: false,
        defaultEncoding: 'utf8',
        awaitDrain: 0,
        readingMore: false,
        decoder: null,
        encoding: null },
     readable: false,
     _events:
      [Object: null prototype] {
        end: [Array],
        close: [Array],
        data: [Function],
        error: [Function] },
     _eventsCount: 4,
     _maxListeners: undefined,
     socket:
      TLSSocket {
        _tlsOptions: [Object],
        _secureEstablished: true,
        _securePending: false,
        _newSessionPending: false,
        _controlReleased: true,
        _SNICallback: null,
        servername: 'translate.google.cn',
        alpnProtocol: false,
        authorized: true,
        authorizationError: null,
        encrypted: true,
        _events: [Object],
        _eventsCount: 8,
        connecting: false,
        _hadError: false,
        _handle: [TLSWrap],
        _parent: null,
        _host: 'translate.google.cn',
        _readableState: [ReadableState],
        readable: true,
        _maxListeners: undefined,
        _writableState: [WritableState],
        writable: false,
        allowHalfOpen: false,
        _sockname: null,
        _pendingData: null,
        _pendingEncoding: '',
        server: undefined,
        _server: null,
        ssl: [TLSWrap],
        _requestCert: true,
        _rejectUnauthorized: true,
        parser: null,
        _httpMessage: [ClientRequest],
        [Symbol(res)]: [TLSWrap],
        [Symbol(asyncId)]: 5649,
        [Symbol(lastWriteQueueSize)]: 0,
        [Symbol(timeout)]: null,
        [Symbol(kBytesRead)]: 0,
        [Symbol(kBytesWritten)]: 0,
        [Symbol(connect-options)]: [Object] },
     connection:
      TLSSocket {
        _tlsOptions: [Object],
        _secureEstablished: true,
        _securePending: false,
        _newSessionPending: false,
        _controlReleased: true,
        _SNICallback: null,
        servername: 'translate.google.cn',
        alpnProtocol: false,
        authorized: true,
        authorizationError: null,
        encrypted: true,
        _events: [Object],
        _eventsCount: 8,
        connecting: false,
        _hadError: false,
        _handle: [TLSWrap],
        _parent: null,
        _host: 'translate.google.cn',
        _readableState: [ReadableState],
        readable: true,
        _maxListeners: undefined,
        _writableState: [WritableState],
        writable: false,
        allowHalfOpen: false,
        _sockname: null,
        _pendingData: null,
        _pendingEncoding: '',
        server: undefined,
        _server: null,
        ssl: [TLSWrap],
        _requestCert: true,
        _rejectUnauthorized: true,
        parser: null,
        _httpMessage: [ClientRequest],
        [Symbol(res)]: [TLSWrap],
        [Symbol(asyncId)]: 5649,
        [Symbol(lastWriteQueueSize)]: 0,
        [Symbol(timeout)]: null,
        [Symbol(kBytesRead)]: 0,
        [Symbol(kBytesWritten)]: 0,
        [Symbol(connect-options)]: [Object] },
     httpVersionMajor: 1,
     httpVersionMinor: 1,
     httpVersion: '1.1',
     complete: true,
     headers:
      { 'content-type': 'text/html; charset=UTF-8',
        'x-content-type-options': 'nosniff',
        date: 'Mon, 20 May 2019 06:41:01 GMT',
        server: 'HTTP server (unknown)',
        'content-length': '1915',
        'x-xss-protection': '0',
        'alt-svc': 'quic=":443"; ma=2592000; v="46,44,43,39"',
        connection: 'close' },
     rawHeaders:
      [ 'Content-Type',
        'text/html; charset=UTF-8',
        'X-Content-Type-Options',
        'nosniff',
        'Date',
        'Mon, 20 May 2019 06:41:01 GMT',
        'Server',
        'HTTP server (unknown)',
        'Content-Length',
        '1915',
        'X-XSS-Protection',
        '0',
        'Alt-Svc',
        'quic=":443"; ma=2592000; v="46,44,43,39"',
        'Connection',
        'close' ],
     trailers: {},
     rawTrailers: [],
     aborted: false,
     upgrade: false,
     url: '',
     method: null,
     statusCode: 403,
     statusMessage: 'Forbidden',
     client:
      TLSSocket {
        _tlsOptions: [Object],
        _secureEstablished: true,
        _securePending: false,
        _newSessionPending: false,
        _controlReleased: true,
        _SNICallback: null,
        servername: 'translate.google.cn',
        alpnProtocol: false,
        authorized: true,
        authorizationError: null,
        encrypted: true,
        _events: [Object],
        _eventsCount: 8,
        connecting: false,
        _hadError: false,
        _handle: [TLSWrap],
        _parent: null,
        _host: 'translate.google.cn',
        _readableState: [ReadableState],
        readable: true,
        _maxListeners: undefined,
        _writableState: [WritableState],
        writable: false,
        allowHalfOpen: false,
        _sockname: null,
        _pendingData: null,
        _pendingEncoding: '',
        server: undefined,
        _server: null,
        ssl: [TLSWrap],
        _requestCert: true,
        _rejectUnauthorized: true,
        parser: null,
        _httpMessage: [ClientRequest],
        [Symbol(res)]: [TLSWrap],
        [Symbol(asyncId)]: 5649,
        [Symbol(lastWriteQueueSize)]: 0,
        [Symbol(timeout)]: null,
        [Symbol(kBytesRead)]: 0,
        [Symbol(kBytesWritten)]: 0,
        [Symbol(connect-options)]: [Object] },
     _consuming: true,
     _dumped: false,
     req:
      ClientRequest {
        _events: [Object],
        _eventsCount: 5,
        _maxListeners: undefined,
        output: [],
        outputEncodings: [],
        outputCallbacks: [],
        outputSize: 0,
        writable: true,
        _last: true,
        chunkedEncoding: false,
        shouldKeepAlive: false,
        useChunkedEncodingByDefault: false,
        sendDate: false,
        _removedConnection: false,
        _removedContLen: false,
        _removedTE: false,
        _contentLength: 0,
        _hasBody: true,
        _trailer: '',
        finished: true,
        _headerSent: true,
        socket: [TLSSocket],
        connection: [TLSSocket],
        _header:
         'GET /translate_a/t?client=t&sl=zh-CN&tl=en&hl=zh-CN$dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&ie=UTF-8&oe=UTF-8&clearbtn=1&otf=1&pc=1&ssel=0&tsel=0&kc=2&v=1.0&source=is&tk=890148.763482&q=C++%E5%B9%B4%E5%8E%86%E6%98%BE%E7%A4%BA HTTP/1.1\r\nhost: translate.google.cn\r\nConnection: close\r\n\r\n',
        _onPendingData: [Function: noopPendingOutput],
        agent: [Agent],
        socketPath: undefined,
        timeout: undefined,
        method: 'GET',
        path:
         '/translate_a/t?client=t&sl=zh-CN&tl=en&hl=zh-CN$dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&ie=UTF-8&oe=UTF-8&clearbtn=1&otf=1&pc=1&ssel=0&tsel=0&kc=2&v=1.0&source=is&tk=890148.763482&q=C++%E5%B9%B4%E5%8E%86%E6%98%BE%E7%A4%BA',
        _ended: true,
        res: [Circular],
        aborted: undefined,
        timeoutCb: null,
        upgradeOrConnect: false,
        parser: null,
        maxHeadersCount: null,
        [Symbol(isCorked)]: false,
        [Symbol(outHeadersKey)]: [Object] },
     request:
      Request {
        _events: [Object],
        _eventsCount: 5,
        _maxListeners: undefined,
        method: 'GET',
        uri: [Url],
        readable: true,
        writable: true,
        explicitMethod: true,
        _qs: [Querystring],
        _auth: [Auth],
        _oauth: [OAuth],
        _multipart: [Multipart],
        _redirect: [Redirect],
        _tunnel: [Tunnel],
        _rp_resolve: [Function],
        _rp_reject: [Function],
        _rp_promise: [Promise],
        _rp_callbackOrig: undefined,
        callback: [Function],
        _rp_options: [Object],
        headers: {},
        setHeader: [Function],
        hasHeader: [Function],
        getHeader: [Function],
        removeHeader: [Function],
        localAddress: undefined,
        pool: {},
        dests: [],
        __isRequestRequest: true,
        _callback: [Function: RP$callback],
        proxy: null,
        tunnel: true,
        setHost: true,
        originalCookieHeader: undefined,
        _disableCookies: true,
        _jar: undefined,
        port: 443,
        host: 'translate.google.cn',
        path:
         '/translate_a/t?client=t&sl=zh-CN&tl=en&hl=zh-CN$dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&ie=UTF-8&oe=UTF-8&clearbtn=1&otf=1&pc=1&ssel=0&tsel=0&kc=2&v=1.0&source=is&tk=890148.763482&q=C++%E5%B9%B4%E5%8E%86%E6%98%BE%E7%A4%BA',
        httpModule: [Object],
        agentClass: [Function],
        agent: [Agent],
        _started: true,
        href:
         'https://translate.google.cn/translate_a/t?client=t&sl=zh-CN&tl=en&hl=zh-CN$dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&ie=UTF-8&oe=UTF-8&clearbtn=1&otf=1&pc=1&ssel=0&tsel=0&kc=2&v=1.0&source=is&tk=890148.763482&q=C++%E5%B9%B4%E5%8E%86%E6%98%BE%E7%A4%BA',
        req: [ClientRequest],
        ntick: true,
        response: [Circular],
        originalHost: 'translate.google.cn',
        originalHostHeaderName: 'host',
        responseContent: [Circular],
        _destdata: true,
        _ended: true,
        _callbackCalled: true },
     toJSON: [Function: responseToJSON],
     caseless: Caseless { dict: [Object] },
     body:
      '<!DOCTYPE html>\n<html lang=en>\n  <meta charset=utf-8>\n  <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">\n  <title>Error 403 (Forbidden)!!1</title>\n  <style>\n    *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}\n  </style>\n  <a href=//www.google.com/><span id=logo aria-label=Google></span></a>\n  <p><b>403.</b> <ins>That’s an error.</ins>\n  <p>Your client does not have permission to get URL <code>/translate_a/t?client=t&amp;sl=zh-CN&amp;tl=en&amp;hl=zh-CN$dt=at&amp;dt=bd&amp;dt=ex&amp;dt=ld&amp;dt=md&amp;dt=qca&amp;dt=rw&amp;dt=rm&amp;dt=ss&amp;dt=t&amp;ie=UTF-8&amp;oe=UTF-8&amp;clearbtn=1&amp;otf=1&amp;pc=1&amp;ssel=0&amp;tsel=0&amp;kc=2&amp;v=1.0&amp;source=is&amp;tk=890148.763482&amp;q=C++%E5%B9%B4%E5%8E%86%E6%98%BE%E7%A4%BA</code> from this server.  <ins>That’s all we know.</ins>\n' } }

除个别几个不能翻译外(手动添加translate_title也能成功),基本都正常,就是hexo g的时候会报错,其他没什么

基本可以断定, 在标题中出现 & + 字符会导致翻译报错,但是内容(translate title)似乎是可以正常添加进去。 强迫症忍不了,有错不研究也危险,比如百度和有道生成的都是空标题。
大佬给整整转义处理一下吧

基本可以断定, 在标题中出现 & + 字符会导致翻译报错,但是内容(translate title)似乎是可以正常添加进去。 强迫症忍不了,有错不研究也危险,比如百度和有道生成的都是空标题。
大佬给整整转义处理一下吧

嗯,我的有+没&,+号去掉就好了

jkjoy commented

我发现我也是这个问题。