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

WS connections refused with 1006, even though token is correct #3377

Open
1 task done
Twiggeh opened this issue Jun 24, 2023 · 2 comments
Open
1 task done

WS connections refused with 1006, even though token is correct #3377

Twiggeh opened this issue Jun 24, 2023 · 2 comments

Comments

@Twiggeh
Copy link

Twiggeh commented Jun 24, 2023

My question:
After running the production installation of wire server for ~ 20+ days, the ws connections are failing the upgrade with error code 1006, I have tried restarting cannon and nginz (because it was giving http 420, which I assume is a rate limit), but nothing helped.

Apart from re-deploying the entire backend I have not found a way to fix this behaviour, any Ideas on what I should check / do.

Currently I have failed over the misbehaving cluster to a "fresh one".

The normal requests that also require authorization are resolved with no issue with the same token (e.g. /notifications /list-connections)

@akshaymankar
Copy link
Member

I haven't seen this error yet. I think the client logs might help with understanding the error. Do you have any logs?

@Twiggeh
Copy link
Author

Twiggeh commented Jun 28, 2023

Hi @akshaymankar !

I do have logs, but I don't know from which pod you would like to have the logs from, e.g. cannon returns an empty file
kubectl logs $(kubectl get pods | grep cannon | awk '{print $1}') -c cannon

Here the console output for the ws upgrade

isTrusted: true
bubbles: false
cancelBubble: false
cancelable: false
code: 1006
composed: false
currentTarget: 
WebSocket {url: 'wss://nginz-ssl.<nda>/await?access_token=d5…a64.c=5720203841942841103&client=4e29e84c76b93db0', readyState: 3, bufferedAmount: 0, onopen: ƒ, onerror: ƒ, …}
defaultPrevented: false
eventPhase: 0
reason: ""
returnValue: true
srcElement: WebSocket {url: 'wss://nginz-ssl.<nda>/await?access_token=d5…a64.c=5720203841942841103&client=4e29e84c76b93db0', readyState: 3, bufferedAmount: 0, onopen: ƒ, onerror: ƒ, …}
target: WebSocket {url: 'wss://nginz-ssl.<nda>/await?access_token=d5…a64.c=5720203841942841103&client=4e29e84c76b93db0', readyState: 3, bufferedAmount: 0, onopen: ƒ, onerror: ƒ, …}
timeStamp: 72322.09999999963
type: "close"
wasClean: false
[[Prototype]]: CloseEvent
Hallo Hallo mehr :D

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