Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
joshuao3 opened this issue Nov 28, 2023 · 0 comments
Open

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

joshuao3 opened this issue Nov 28, 2023 · 0 comments

Comments

@joshuao3
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant