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

Error when passing agent to nmp #71

Open
u9g opened this issue Jul 12, 2021 · 0 comments
Open

Error when passing agent to nmp #71

u9g opened this issue Jul 12, 2021 · 0 comments

Comments

@u9g
Copy link
Member

u9g commented Jul 12, 2021

When passing a valid (and working) socks5 proxy using the code in this example: https://github.com/PrismarineJS/node-minecraft-protocol/blob/master/examples/client_socks_proxy/client_socks_proxy.js , I get

(node:30580) [DEP0123] DeprecationWarning: Setting the TLS ServerName to an IP address is not permitted by RFC 6066. This will be ignored in a future version.
(Use `node --trace-deprecation ...` to show where the warning was created)
[undefined] error FetchError: request to https://authserver.mojang.com/authenticate failed, reason: Hostname/IP does not match certificate's altnames: IP: 123.456.789.000 is not 
in the cert's list:
    at ClientRequest.<anonymous> (C:\Users\---\Documents\js-projects\xxx-project\node_modules\node-fetch\lib\index.js:1461:11)
    at ClientRequest.emit (events.js:315:20)
    at TLSSocket.socketErrorListener (_http_client.js:469:9)
    at TLSSocket.emit (events.js:315:20)
    at emitErrorNT (internal/streams/destroy.js:106:8)
    at emitErrorCloseNT (internal/streams/destroy.js:74:3)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  type: 'system',
  errno: 'ERR_TLS_CERT_ALTNAME_INVALID',
  code: 'ERR_TLS_CERT_ALTNAME_INVALID'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant