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

Unexpected server response: 401 #107

Open
borahanarslan opened this issue Dec 7, 2021 · 1 comment
Open

Unexpected server response: 401 #107

borahanarslan opened this issue Dec 7, 2021 · 1 comment

Comments

@borahanarslan
Copy link

Hi,
I bought a paid api from https://www.ankr.com/ but it still gives the same error, sometimes it does and sometimes it doesn't. What could be the source of the problem

`Listening for Liquidity Addition to token 0x2b3f34e9d4b127797ce6244ea341a83733ddd6e4
node:events:368
throw er; // Unhandled 'error' event
^

Error: Unexpected server response: 401
at ClientRequest. (C:\Users\borah\Desktop\bot\node_modules\ws\lib\websocket.js:604:7)
at ClientRequest.emit (node:events:390:28)
at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:623:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
at TLSSocket.socketOnData (node:_http_client:487:22)
at TLSSocket.emit (node:events:390:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at TLSSocket.Readable.push (node:internal/streams/readable:234:10)
at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)
Emitted 'error' event on WebSocket instance at:
at abortHandshake (C:\Users\borah\Desktop\bot\node_modules\ws\lib\websocket.js:731:15)
at ClientRequest. (C:\Users\borah\Desktop\bot\node_modules\ws\lib\websocket.js:604:7)
[... lines matching original stack trace ...]
at TLSSocket.Readable.push (node:internal/streams/readable:234:10)

Node.js v17.2.0

C:\Users\borah\Desktop\bot>`

@Nafidinara
Copy link
Owner

hi @borahanarslan what package node that you buy from ankr?

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

2 participants