-
-
Notifications
You must be signed in to change notification settings - Fork 239
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
1.20.4 Login event never triggered on Node 18 #1289
Comments
Please enable debug mode and post packet log |
I'm also experiencing the same thing on Node 20, but I couldn't reproduce it in a testing environment yet.
|
minecraft-protocol { reason: '{"text":"DidNotEncryptVerifyTokenProperly"}' } +0ms this is clearly the problem |
@Opisek can you reproduce in a vanilla server? |
No I cannot. The issue is only with node-minecraft-protocol based server, I can join any other server just fine. The issue persisted on two machines I tried for a server and two different minecraft users from different countries. For context, here's my production code: https://github.com/Opisek/mc-paper-docker/blob/bug/dynmap/src/modules/mock.ts The example in my original post only seems to work in Node 20, but not Node 18. |
Are you using online login? |
Yes, everything worked fine a few weeks ago in node-minecraft-protocol 1.44.0 and minecraft 1.20.1. |
May I know what Node version you use for testing? Here's how node-minecraft-protocol behaves on my systems depending on the Node version: (Tested on both a Debian and a Windows server with both the example code in my original post and the linked production code.) |
https://github.com/PrismarineJS/node-minecraft-protocol/blob/master/.github/workflows/ci.yml#L20 we use node 18 However we disabled the online login tests a while back because it did not work well with the throttling limits on Mojang auth #372 Might be time to revisit this... |
I'll see if I can run it on the one stable version I could find, otherwise I'll disable online login. Thanks for looking into it and please keep me updated. |
Weirdly enough on my testing, Deno 1.42.0 (on node compat) emits the Login event correctly.
Could this be due to an ABI change in Node? |
I was trying to make a proxy and suddenly could not join any Minecraft-Protocol Server so I tested multiple versions of Minecraft such as When I join the server from the client it says:
After I found this GitHub issue I tried v20.10.0 and it worked. Node v18.0.0: Yes
Node v22.0.0: No |
Any update on this? |
Is the library still being actually updated? This seems to have been an issue for months with no commits trying to fix it. |
I hope it is, I recently made a pr that fixs joining 1.20.6 servers with viaversion in prismarine-registry. It have been 2 weeks and it haven't been merged. It seems that they Maybe the maintainers are just busy at something right now. Be patient. |
I am (i have been postponing doing the project I have in mind for quite a while already), it’s just starting to look like this library is either not being updated anymore or there are not enough trusted maintainers that can keep up with the bugs (this bug is now several months old and is a breaking one) or even merge the pull requests. |
I had an idea of forking all prismarinejs projects to another GitHub organization to get my wanted changes to be merged. Most of the prismarinejs projects doesn't really need to have to update once a while, usually they are just classes and types for the core projects. Because of this, they didn't really have to add many maintainers for most of the projects. But I agree with you that they didn't keep up with the bugs recently. |
Indeed, this is normal for open source projects; you don't just push commits for the sake of doing commits to appear active. That doesn't mean there are no maintainers, it just means there are no PRs to merge. If you (or someone) make a PR to fix it then there is a discussion about not merging it, then we can talk about why the PR isn't merged, but at this time there is no PR to fix it. There are indeed no maintainers here being paid to monitor and fix your bugs, and we are not sponsored by Microsoft or some other org. The commits done here are done by volunteers and will be done as soon as someone has time and is interested in doing a PR. You are always free to fork, but that obviously won't fix bugs unless you write the code to fix them yourself.
Could be related to #1293 |
Is the library still being actually updated? This seems to have been an
issue for months with no commits trying to fix it.
You seem to need this update and more contributors is always better. Are
you interested in writing the commits needed to update to that new version?
…On Sun, Jun 2, 2024, 1:36 PM extremeheat ***@***.***> wrote:
Is the library still being actually updated? This seems to have been an
issue for months with no commits trying to fix it.
Indeed, this is normal for open source projects; you don't just push
commits for the sake of doing commits to appear active. That doesn't mean
there are no maintainers, it just means there are no PRs to merge.
If you (or someone) make a PR to fix it then there is a discussion about
not merging it, then we can talk about why the PR isn't merged, but at this
time there is no PR to fix it.
There are indeed no maintainers here being paid to monitor and fix your
bugs, and we are not sponsored by Microsoft or some other org. The commits
done here are done by volunteers and will be done as soon as someone has
time and is interested in doing a PR. You are always free to fork, but that
obviously won't fix bugs unless you write the code to fix them yourself.
Any update on this?
Could be related to #1293
<#1293>
—
Reply to this email directly, view it on GitHub
<#1289 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAR437UDDJ73Y54CLZMRQMLZFMUYLAVCNFSM6AAAAABD3YO44OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBTHA4DCMRSHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Versions
Detailed description of a problem
The protocol is broken on Node 18. Works fine on Node 20. The simplest way to reproduce it is to simply listen for a
login
event.Current code
Expected behavior
"join" is printed on the console when a client tries to join the server.
Actual behavior
Nothing is printed and one of the following happens
Furthermore, the server may receive the following error (does not always happen either):
Additional context
I'd like to ask you to adjust the supported engine value for this library to disclude older versions of Node, if this issue can't be fixed easily.
The text was updated successfully, but these errors were encountered: