You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using hessian-proxy with node.js v6.10.0, I get a TypeError when trying to establish a connection secured by BASIC authentication:
TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.
at fromObject (buffer.js:262:9)
at Function.Buffer.from (buffer.js:101:10)
at new ClientRequest (_http_client.js:112:27)
at Object.exports.request (http.js:31:10)
at Object.exports.request (https.js:199:15)
at Proxy.invoke (/project/node_modules/hessian-proxy/lib/proxy.js:58:38)
at Object. (/project/lib/hessian-adapter.js:10:8)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
The problem is caused by the interpretation of options.auth in http.ClientRequest. It should be of the form "login:password", but instead Proxy.invoke supplies an object {"user":"login","pass":"password","sendImmediately":true}. This can be seen in proxy.js line 50-56:
Using hessian-proxy with node.js v6.10.0, I get a TypeError when trying to establish a connection secured by BASIC authentication:
The problem is caused by the interpretation of options.auth in http.ClientRequest. It should be of the form "login:password", but instead Proxy.invoke supplies an object {"user":"login","pass":"password","sendImmediately":true}. This can be seen in proxy.js line 50-56:
Replacing these lines with
resolves the issue.
Kind regards,
Martin Dirichs
The text was updated successfully, but these errors were encountered: