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

[MC 1.20.6 - Protocol 1.49.0] nmp server: Failed to verify username #1340

Open
vincss opened this issue Oct 13, 2024 · 10 comments
Open

[MC 1.20.6 - Protocol 1.49.0] nmp server: Failed to verify username #1340

vincss opened this issue Oct 13, 2024 · 10 comments

Comments

@vincss
Copy link

vincss commented Oct 13, 2024

[x] The FAQ doesn't contain a resolution to my issue

Versions

  • minecraft-protocol: 1.49.0
  • server: vanilla/spigot/paper 1.20.6
  • node: 20.10.0

Detailed description of a problem

When I'm trying to connect to the server with a client in version 1.20.6 and the server is using minecraft-protocol 1.49.0, I get the follow error in the client :
image

Current code

DEBUG CreateServer {
  'online-mode': true,
  motdMsg: { text: 'SleepingServer, waiting for his prince...' },
  port: 25565,
  maxPlayers: 20,
  version: false,
  beforePing: [Function: beforePing],
  validateChannelProtocol: true,
  errorHandler: [Function: errorHandler],
  enforceSecureProfile: true
}

Expected behavior

The connection is accepted, and it doesn't failed to verify the username.

Additional context

When I switch the "oneline-mode" to false:
DEBUG CreateServer { 'online-mode': false, motdMsg: { text: 'SleepingServer, waiting for his prince...' }, port: 25565, maxPlayers: 20, version: false, beforePing: [Function: beforePing], validateChannelProtocol: true, errorHandler: [Function: errorHandler], enforceSecureProfile: false }
The connection is handle but I got an error on the client side :
{0221C08B-3A66-4901-996D-5F11BC8CD9E7}

Thanks for your help & devotion and this package.

Have a nice day.

@vincss vincss changed the title [1.20.6] Failed to verify username [MC 1.20.6 - Protocol 1.49.0] Failed to verify username Oct 13, 2024
@rom1504 rom1504 pinned this issue Oct 13, 2024
@rom1504
Copy link
Member

rom1504 commented Oct 13, 2024

@LucienHH do you think you could help figure that out?

@rom1504
Copy link
Member

rom1504 commented Oct 13, 2024

@vincss can you reproduce on a vanilla server ?

@vincss
Copy link
Author

vincss commented Oct 14, 2024

Hi,
Yes, it is before the minecraft server starts, I make a server that listen for client before to wake a real server :
https://github.com/vincss/mcsleepingserverstarter/blob/master/src/sleepingMcJava.ts#L40

Thanks for your investigation.

@rom1504
Copy link
Member

rom1504 commented Oct 14, 2024

We checked, client is working in 1.20.6

@rom1504 rom1504 unpinned this issue Oct 14, 2024
@vincss
Copy link
Author

vincss commented Oct 14, 2024

I'm using the server part of the library and a vanilla client.

@vincss
Copy link
Author

vincss commented Oct 27, 2024

Hi,
I also tried with the latest version of node-minecraft-protocol 1.50.0 and client in 1.21.1 , but I ended up with the same error. :(

@rom1504
Copy link
Member

rom1504 commented Oct 27, 2024

Provide more info. It's working for some people and not others

@vincss
Copy link
Author

vincss commented Oct 29, 2024

I would gladly provide more information.

When I start a server with the createServer with the version "minecraft-protocol": "^1.50.0", :
https://github.com/vincss/mcsleepingserverstarter/blob/feature/minecraft-protocol_1.50.0/src/sleepingMcJava.ts#L39

DEBUG CreateServer {
  'online-mode': true,
  motdMsg: { text: 'SleepingServer, waiting for his prince...' },
  port: 25565,
  maxPlayers: 20,
  version: false,
  beforePing: [Function: beforePing],
  validateChannelProtocol: true,
  errorHandler: [Function: errorHandler],
  enforceSecureProfile: true
}

In the official client vanilla client in 1.21.1, I get the following error "Failed to verify username" :
{8494EFB7-2562-4F5A-987A-4CF3CD777E7E}

Can you tell me which information would help ?

@rom1504
Copy link
Member

rom1504 commented Oct 29, 2024

So your problem is not about node Minecraft protocol client but about the server. Is that right?

@rom1504 rom1504 changed the title [MC 1.20.6 - Protocol 1.49.0] Failed to verify username [MC 1.20.6 - Protocol 1.49.0] server: Failed to verify username Oct 29, 2024
@rom1504 rom1504 changed the title [MC 1.20.6 - Protocol 1.49.0] server: Failed to verify username [MC 1.20.6 - Protocol 1.49.0] nmp server: Failed to verify username Oct 29, 2024
@vincss
Copy link
Author

vincss commented Oct 29, 2024

Yes, that's it :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants