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
[x] The FAQ doesn't contain a resolution to my issue
This line in node-minecraft-protocol can throw an unhandled error when the returned string is not a json or invalid.
node-minecraft-protocol/src/client/versionChecking.js
Line 4 in ffe912b
Better error handling. Maybe emit the raw string instead when the json parsing failed.
The text was updated successfully, but these errors were encountered:
The only thing I can think of without figuring out if this is a client problem or server problem, is to do something like:
module.exports = function (client, options) { client.on('disconnect', message => { if (!message.reason) return; let parsed; try { parsed = JSON.parse(message.reason) } catch { debug(`Failed to parse disconnect message: ${message}`); return;
But the rest of this file pretty much depends on parsing the reason.
Sorry, something went wrong.
No branches or pull requests
[x] The FAQ doesn't contain a resolution to my issue
Versions
Detailed description of a problem
This line in node-minecraft-protocol can throw an unhandled error when the returned string is not a json or invalid.
node-minecraft-protocol/src/client/versionChecking.js
Line 4 in ffe912b
Expected behavior
Better error handling. Maybe emit the raw string instead when the json parsing failed.
The text was updated successfully, but these errors were encountered: