Skip to content

In manager.ts on Parse error it throws Cannot wrap an error #6

@xmaIIoc

Description

@xmaIIoc

On ProxyManager in manager.ts upon receiving a Parse Error with a code: 'HPE_INVALID_CONSTANT'.

     at Socket.socketOnData (_http_client.js:445:20)
     at Socket.emit (events.js:180:13)
     at addChunk (_stream_readable.js:274:12)
     at readableAddChunk (_stream_readable.js:261:11)
     at Socket.Readable.push (_stream_readable.js:218:10)
     at TCP.onread (net.js:581:20)
   bytesParsed: 0,
   code: 'HPE_INVALID_CONSTANT',
   trace:
    [ { method: 'GET', url: 'http://xxx.xxx.xxx.xxx:yyyy/favicon.ico' } ],
   isBoom: true,
   isServer: true,
   data: null,
   output:
    { statusCode: 502,
      payload:
       { message: 'Client request error: Parse Error',
         statusCode: 502,
         error: 'Bad Gateway' },
      headers: {} },
   reformat: [Function] }

Biim.wrap on line 55 throws:

    AssertionError [ERR_ASSERTION]: Cannot wrap an error
    at new AssertionError (internal/errors.js:315:11)
    at Object.exports.assert (/usr/src/app/node_modules/hoek/lib/index.js:736:11)
    at internals.Toolkit.response (/usr/src/app/node_modules/@hapiness/proxy/node_modules/hapi/lib/toolkit.js:146:14)
    at onResponse (/usr/src/app/node_modules/@hapiness/proxy/commonjs/manager.js:49:46)
    at /usr/src/app/node_modules/@hapiness/proxy/node_modules/h2o2/lib/index.js:177:44
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:182:7)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions