Skip to content

Console log is full of errors (ver 0.10.0) #284

@joshuao3

Description

@joshuao3

My console keeps registering this error with some requests:

{"level":50,
"time":1701183084869,
"pid":3920,
"hostname":"SERVER",
"name":"redbird",
"code":"ERR_MULTIPLE_CALLBACK",
"msg":"HTTPS Client  Error",
"stack":"Error [ERR_MULTIPLE_CALLBACK]: Callback called multiple times
    at new NodeError (node:internal/errors:405:5)
    at onwrite (node:internal/streams/writable:441:28)
    at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:106:10)
    at D:\\www\\nodejs\\proxy\\node_modules\\handle-thing\\lib\\handle.js:204:9
    at afterWrite (D:\\www\\nodejs\\proxy\\node_modules\\readable-stream\\lib\\_stream_writable.js:443:3)
    at onwrite (D:\\www\\nodejs\\proxy\\node_modules\\readable-stream\\lib\\_stream_writable.js:436:7)
    at WritableState.onwrite (D:\\www\\nodejs\\proxy\\node_modules\\readable-stream\\lib\\_stream_writable.js:160:5)
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)",
"type":"Error",
"v":1}

My install is super vanilla:

var redbirdProxy = require('redbird')({
    host: config.privateIP
  , port: config.privatePort
  , xfwd: false
  , ssl: {
      http2: true,
      key: '..\\ssl\\ssl-drttix.pem',
      cert: '..\\ssl\\ssl-drttix.pem',    
      port: config.publicPort, // 443
      host: config.publicIP
  }
});

for (let ep in config.endpointsRedbird) {
  var endpoint = config.endpointsRedbird[ep];
  redbirdProxy.register('my.domain.com' + endpoint.path, endpoint.target);
}

The proxy is working... I'm getting the expected results in the browser. But the console log is filling up with the error.

When the proxy starts, there is also this error in the log:

(node:4688) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.

Help understanding what's going on would certainly be appreciated. Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    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