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

EProto 600 error when using node 9 #56

Closed
jrgleason opened this issue Jan 29, 2018 · 2 comments
Closed

EProto 600 error when using node 9 #56

jrgleason opened this issue Jan 29, 2018 · 2 comments

Comments

@jrgleason
Copy link

I am trying to connect using node 9. When I do so I get...

Error: {"response":{"headers":{},"statusCode":600},"status":600,"error":{"errno":"EPROTO","code":"EPROTO","syscall":"write"}}

It looks like this might be due to this

I had

var headers = {
  ...
  'Content-Type': 'text/xml',
  'Content-Length': Buffer(body).byteLength
};

But I think this was the culpritL

var headers = {
  ...
  'Content-Type': 'text/xml',
  'Content-Length': body.length
};

I see the same code in the project...

request_options.headers["Content-Length"] = Buffer.byteLength(request_options.body, "utf8");

@shakeelmohamed
Copy link
Contributor

We've filed this internally as DVPL-7283, and will take a look

@shakeelmohamed
Copy link
Contributor

We've merged #65 into the develop branch. It will be out in the next release

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

2 participants