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

WebSocket closed; The client-token could be invalidated, please re-login #129

Closed
PNRxA opened this issue Jul 29, 2020 · 17 comments
Closed

Comments

@PNRxA
Copy link

PNRxA commented Jul 29, 2020

I get this issue daily where this error message comes up. I fix it by going into the app and clicking the refresh button in the hamburger menu. It doesn't require another log in, it just refreshes and connects back to the websocket. I had a look through existing issues but couldn't find anything, is this a known problem?

Device: Pixel 4 XL
Android: 10 on latest security patch
Gotify Android version: 2.0.13 from Play Store
Battery optimisation turned off
Gotify Server: 2.0.17 docker behind caddy

Notification Logs
@jmattheis
Copy link
Member

I've some ideas why this is caused, probably the only thing that can be done is to add an automatic reconnect.

@PNRxA
Copy link
Author

PNRxA commented Jul 30, 2020

It happens very frequently, sometimes every couple of minutes. I'd love for it to automatically reconnect

@PNRxA
Copy link
Author

PNRxA commented Jul 30, 2020

@jmattheis With further testing, while this message is showing notifications still come through. Is there any troubleshooting/testing you'd like me to perform?

@jmattheis
Copy link
Member

jmattheis commented Jul 31, 2020

Yeah, does gotify/server output any errors? The server logs to stdout.
And, do you use some kind of reverse proxy, if so please paste your config.

@PNRxA
Copy link
Author

PNRxA commented Jul 31, 2020

Caddy (v2) is set up simply as:

gotify.mydomain.run {
        reverse_proxy 192.168.87.84:8070
}

(run is the TLD if that matters)

I can then access and use Gotify externally on https://gotify.mydomain.run

My stdout logs don't go far enough at the time of writing this but I'll try to get the output when it happens soon.
You said you might have an idea how this is caused, is it reproducible? If so that might help me to get the logs

@jmattheis
Copy link
Member

My guess would be that the connection read/write timeouts on server side and the connection will be closed. But this should be logged in gotify/server.

@PNRxA
Copy link
Author

PNRxA commented Jul 31, 2020

Ok so I reproduced this by switching networks to/from 4G.

My phone shows the WebSocket closed message but still receives notifications that are pushed to Gotify.

The server logs show the following, you can see the message I posted at the bottom:

[GIN] 2020/07/31 - 17:27:46 | 200 | 23.532µs | 127.0.0.1 | GET "/health"
[GIN] 2020/07/31 - 17:28:17 | 200 | 38.118µs | 127.0.0.1 | GET "/health"
[GIN] 2020/07/31 - 17:28:47 | 200 | 26.914µs | 127.0.0.1 | GET "/health"
[GIN] 2020/07/31 - 17:29:18 | 200 | 23.913µs | 127.0.0.1 | GET "/health"
[GIN] 2020/07/31 - 17:29:29 | 200 | 511.797µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 391.542µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 380.82µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 315.766µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 616.914µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 836.845µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 412.32µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 429.732µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 233.887µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 394.26µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 489.817µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 763.643µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 856.651µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 1.082462ms | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 1.237384ms | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 246.424µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 264.351µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 458.528µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 299.529µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 468.036µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 641.735µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 511.797µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 391.542µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 380.82µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 315.766µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 616.914µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 836.845µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 412.32µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 429.732µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 233.887µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 394.26µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 489.817µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 763.643µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 856.651µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 1.082462ms | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 1.237384ms | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 246.424µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 264.351µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 458.528µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 299.529µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 468.036µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 641.735µs | my.4G.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:29 | 200 | 1.077718ms | my.4G.ip.address | GET "/message?limit=10"
[GIN] 2020/07/31 - 17:29:29 | 200 | 1.404801ms | my.4G.ip.address | GET "/message?limit=10"
[GIN] 2020/07/31 - 17:29:29 | 200 | 1.700395ms | my.4G.ip.address | GET "/message?limit=10"
[GIN] 2020/07/31 - 17:29:29 | 200 | 1.992826ms | my.4G.ip.address | GET "/message?limit=10"
[GIN] 2020/07/31 - 17:29:29 | 200 | 1.070614ms | my.4G.ip.address | GET "/message?limit=10"
[GIN] 2020/07/31 - 17:29:29 | 200 | 1.668951ms | my.4G.ip.address | GET "/message?limit=10"
[GIN] 2020/07/31 - 17:29:29 | 200 | 2.047709ms | my.4G.ip.address | GET "/message?limit=10"
[GIN] 2020/07/31 - 17:29:29 | 200 | 2.398399ms | my.4G.ip.address | GET "/message?limit=10"
[GIN] 2020/07/31 - 17:29:29 | 200 | 577.498µs | my.4G.ip.address | GET "/message?limit=10"
[GIN] 2020/07/31 - 17:29:29 | 200 | 680.92µs | my.4G.ip.address | GET "/message?limit=10"
[GIN] 2020/07/31 - 17:29:29 | 200 | 781.324µs | my.4G.ip.address | GET "/message?limit=10"
[GIN] 2020/07/31 - 17:29:29 | 200 | 1.275938ms | my.4G.ip.address | GET "/message?limit=10"
[GIN] 2020/07/31 - 17:29:29 | 200 | 1.686372ms | my.4G.ip.address | GET "/message?limit=10"
[GIN] 2020/07/31 - 17:29:29 | 200 | 2.458442ms | my.4G.ip.address | GET "/message?limit=10"
[GIN] 2020/07/31 - 17:29:29 | 200 | 2.485132ms | my.4G.ip.address | GET "/message?limit=10"
[GIN] 2020/07/31 - 17:29:29 | 200 | 3.082596ms | my.4G.ip.address | GET "/message?limit=10"
[GIN] 2020/07/31 - 17:29:29 | 200 | 3.391247ms | my.4G.ip.address | GET "/message?limit=10"
[GIN] 2020/07/31 - 17:29:29 | 200 | 3.603578ms | my.4G.ip.address | GET "/message?limit=10"
[GIN] 2020/07/31 - 17:29:29 | 200 | 3.932744ms | my.4G.ip.address | GET "/message?limit=10"
[GIN] 2020/07/31 - 17:29:29 | 200 | 921.833µs | my.4G.ip.address | GET "/message?limit=10"
[GIN] 2020/07/31 - 17:29:29 | 200 | 1.235312ms | my.4G.ip.address | GET "/message?limit=10"
[GIN] 2020/07/31 - 17:29:38 | 200 | 318.911µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 291.397µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 361.51µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 227.624µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 358.892µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 208.283µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 287.503µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 459.465µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 192.723µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 326.711µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 240.254µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 443.401µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 438.044µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 262.67µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 206.603µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 387.947µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 406.457µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 181.804µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 276.83µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 274.495µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 232.138µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 181.811µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 354.855µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 188.468µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 351.135µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 289.257µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 200.793µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 222.418µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 266.411µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 256.579µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 270.705µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 233.606µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 185.374µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 232.956µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 271.416µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 191.479µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 214.685µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 396.293µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 219.975µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 371.69µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 337.686µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 328.548µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 318.911µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 291.397µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 361.51µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 227.624µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 358.892µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 208.283µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 287.503µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 459.465µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 192.723µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 326.711µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 240.254µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 443.401µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 438.044µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 262.67µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 206.603µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 387.947µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 406.457µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 181.804µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 276.83µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 274.495µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 232.138µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 181.811µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 354.855µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 188.468µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 351.135µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 289.257µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 200.793µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 222.418µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 266.411µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 256.579µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 270.705µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 233.606µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 185.374µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 232.956µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 271.416µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 191.479µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 214.685µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 396.293µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 219.975µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 371.69µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 337.686µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
[GIN] 2020/07/31 - 17:29:38 | 200 | 328.548µs | my.wifi.ip.address | GET "/stream?token=TOKENTOKENTOKEN"
WebSocket: ReadError websocket: close 1006 (abnormal closure): unexpected EOF
WebSocket: ReadError websocket: close 1006 (abnormal closure): unexpected EOF
[GIN] 2020/07/31 - 17:29:48 | 200 | 29.645µs | 127.0.0.1 | GET "/health"
[GIN] 2020/07/31 - 17:29:48 | 200 | 29.645µs | 127.0.0.1 | GET "/health"
[GIN] 2020/07/31 - 17:30:18 | 200 | 39.558µs | 127.0.0.1 | GET "/health"
[GIN] 2020/07/31 - 17:30:49 | 200 | 26.321µs | 127.0.0.1 | GET "/health"
[GIN] 2020/07/31 - 17:31:08 | 200 | 20.594798ms | 192.168.87.1 | POST "/message?token=TOKENTOKENTOKEN-D"
[GIN] 2020/07/31 - 17:31:19 | 200 | 27.088µs | 127.0.0.1 | GET "/health"
[GIN] 2020/07/31 - 17:31:50 | 200 | 33.788µs | 127.0.0.1 | GET "/health"
[GIN] 2020/07/31 - 17:32:20 | 200 | 27.429µs | 127.0.0.1 | GET "/health"

@jmattheis
Copy link
Member

@PNRxA Could you try out this branch: https://github.com/gotify/android/tree/ws-close to check, if this fixes your problem? In case you've no android build environment ping me back and I'll build the apk for you.

@PNRxA
Copy link
Author

PNRxA commented Aug 1, 2020

@jmattheis In my brief testing on this branch, it properly disconnected and reconnected after a minute then sent through the notifications. I'll send through an update in about 2 days of real world use to see how it goes. Appreciate the fast update

@PNRxA
Copy link
Author

PNRxA commented Aug 4, 2020

@jmattheis I've had a couple app crashes with this new branch where the notification disappeared, here's the app logs after a crash.

Battery optimisation is disabled and no background restrictions

@jmattheis
Copy link
Member

This looks pretty much like the OS has killed gotify.

@PNRxA
Copy link
Author

PNRxA commented Aug 4, 2020

@jmattheis if that's the case, this branch has resolved this issue. I've had no further websocket problems and the reconnections have worked perfectly

@cbwang2016
Copy link

I observed same bug

@eltiel
Copy link

eltiel commented Aug 19, 2020

I'd like to add that I encountered this bug too, but noticed that it only happened after I updated to server 2.0.17. It used to work without issues on 2.0.15

@PNRxA
Copy link
Author

PNRxA commented Sep 10, 2020

@jmattheis are we able to merge the branch?

@jmattheis
Copy link
Member

@PNRxA yeah, sorry totally forgot this issue .__.

@jmattheis
Copy link
Member

Released in 2.0.14

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

No branches or pull requests

4 participants