-
Notifications
You must be signed in to change notification settings - Fork 16
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
buffer error #7
Comments
Get this as it is starting up ... debug: Calling epp command. |
Seems like it's calling |
info: Established a secure connection.
debug: endian length: 500
buffer.js:680 RangeError: index out of range |
Changing calls from readUInt32BE to readUIntBE seems to have fixed it. For nodejs greater than .12. From here: readUIntBE allows a variable number of bytes. |
I'm past that issue, I think. Now all of my requests give ... {"error":"Not logged in."} Assuming this means my creds are failing? |
You'd have to log out the xml output to make sure how it's responding to the login. If they are failing you should be getting an error message in response to your login request. |
And would you mind submitting a patch for the fix? |
Yes, I'll submit a patch. It seems like our server needs all requests wrapped in epp tag ?
|
All the requests should be enclosed in |
Yeah, that was up. Making pull reqeust for BigEndian stuff. On Sat, Nov 5, 2016 at 12:17 PM, William Travis Holton <
Christopher Schaub |
One last question. I get back a successful login now on the console. Should I be able to post to port 3000 a command like
when I do, I get a not logged in error, even though I can see the server running port 3000 got logged in. Do I need to use the nodepp-req library and rabbitmq to test this? Or should posting to a port as json be enough to test? Thanks for your help! |
I assume you mean posting that data structure to something like:
or
Then yes, that should work. The rabbitmq setup is just an alternative way to use the service, but it was intended to work via http requests as well. |
Ok, making progress. I needed to add a try / catch to handle cases where the buffer is empty during phases of the connection. But I am still getting this error: The matching wildcard is strict, but no declaration can be found for element 'domain:check'." Assuming the issues is with namespaces. For domain they are ... "domain": { That's what I was given. Any ideas what else could be causing this? Thanks! |
What do you have in the
and for
It's not really necessary to put |
I am running the nodepp server with a simple login / pass setup. I get a secure connection no problem, but then I get this error right after welcome screen is echoed out ...
buffer.js:680
throw new RangeError('index out of range');
^
RangeError: index out of range
at checkOffset (buffer.js:680:11)
at Buffer.readUInt32BE (buffer.js:754:5)
at ProtocolConnection.readStream (/home/ubuntu/dev/nodepp/lib/connection.js:89:37)
at TLSSocket. (/home/ubuntu/dev/nodepp/lib/connection.js:59:22)
at emitNone (events.js:67:13)
at TLSSocket.emit (events.js:166:7)
at emitReadable_ (_stream_readable.js:419:10)
at emitReadable (_stream_readable.js:413:7)
at readableAddChunk (_stream_readable.js:164:13)
at TLSSocket.Readable.push (_stream_readable.js:111:10)
The text was updated successfully, but these errors were encountered: