FAQ: Why am I getting a 502 error in the Web Viewer?

QUESTION: We use authentication provided by hosting services such as Firebase and also Microsoft Azure. When using such authentication, we get the message “Websocket connection failed” – so basically a 502 gateway error. What’s going on here? Note, if we use authentication directly – that is, without Firebase or Azure – there is no such error and the model loads as expected in the Web Viewer.

The failure to properly connect could be due to the size of the cookies. More specifically, the cookie size is too big. To learn more, check out our forum post.