hawkbit icon indicating copy to clipboard operation
hawkbit copied to clipboard

Communication problem "Invalid JSON from server: 1|x"

Open diegorondini opened this issue 4 years ago • 2 comments

When using Chromium browser sessions tend to be interrupted quite often due to "Communication problem". The session tends to last just 10 minutes, sometimes even less than that (just 1 or 2 min), and then you get the "Communication problem".

This can be reproduced in the sandbox by using Chromium (I'm using version 90 on Fedora 33). Login and just wait for the message to appear.

The full message is: Communication Problem "Take note of any unsaved data, and click here or press ESC to continue." Invalid JSON from server: 1|x

communication-problem_invalid-json-from-server

diegorondini avatar Jul 16 '21 08:07 diegorondini

Can anybody reproduce this issue?

diegorondini avatar Oct 01 '21 06:10 diegorondini

Don't know if you use a Load Balancer, but the cause may be the Atmosphere Websocket having a renewal time longer than the Load Balancer timeout: https://github.com/vaadin/flow/issues/7553#issuecomment-601673781 https://vaadin.com/forum/thread/17902613/communication-problem-invalid-json-from-server-1-x

Either decreasing atmosphere.websocket.maxIdleTime or increasing the Load Balancer timeout should fix this issue.

diegorondini avatar Oct 21 '21 16:10 diegorondini