We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
My code looks as follow
const packet = createPacket(0, // sequence false, // isFromServer false, // isResponse ['serverInfo'] // words ); const test = encodePacket(packet);
The encodePacket however throws an error
[ERR_OUT_OF_RANGE]: The value of "length" is out of range. It must be >= 0 && <= 15. Received 21 at validateOffset (buffer.js:104)
How can I fix this?
The text was updated successfully, but these errors were encountered:
Hello,
there is a bug in the code here: https://github.com/edvinerikson/frostbite-rcon-utils-node/blob/master/src/encoder.js#L28
buf.write('\0', 4 + word.length, buf.length - 4 + word.length, 'binary'); should be replaced with buf.write('\0', 4 + word.length, 'binary');
buf.write('\0', 4 + word.length, buf.length - 4 + word.length, 'binary');
buf.write('\0', 4 + word.length, 'binary');
Sorry, something went wrong.
No branches or pull requests
My code looks as follow
The encodePacket however throws an error
How can I fix this?
The text was updated successfully, but these errors were encountered: