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

Azure WebApp for Container Docker Deployment Elmish Bridge Not Working #321

Closed
steelcityrkp opened this issue Nov 11, 2019 · 3 comments
Closed

Comments

@steelcityrkp
Copy link

If I try to deploy the template as per the instructions following Docker container deploy hosted on Azure WebApp for Container the Client loads up correctly, but the WebSockets used in the Elmish Bridge communication option fail to connect.

I'm trying to resolve this for a project I'm working on built off of this basis; itworks great locally, but doesn't deploy. If I have any progress, I will share. However, I did want to highlight that I did try this from a fresh template and so this doesn't work out of box, or as expected.

The counter example will work fine running locally from a container, but when deployed, the client will load, but it just remains in Loading...

This error keeps repeating in Chrome Debug Console:
WebSocket connection to 'wss://xxx.azurewebsites.net/socket/init' failed: Error during WebSocket handshake: Unexpected response code: 503
I did follow some steps to enable WebSockets for the app (which required using the Shell directly); however, this problem remains.

@theimowski
Copy link
Member

FYI @isaacabraham - that's probably some knobs in Azure?

@isaacabraham
Copy link
Member

Uhhh. 503 is service unavailabile IIRC which suggests maybe the routing is somehow screwed or the port is not open? I must admit I've barely tried Elmish Bridge anyway let along through App Service.

HOWEVER

A quick bit of googling sent me here - seems like websockets aren't fully supported on App Service Containers!

@steelcityrkp
Copy link
Author

It seems that utilizing SignalR in Elmish Bridge is in the pipeline, which would resolve this issue of this combination of Communication Option and Build/Deployment for the template working out-of-box. However, this larger consideration that the WebSockets not being fully supported on App Service for Containers (specifically Linux, it seems) is worth keeping note of and following. Appreciate your feedbacks...!

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

3 participants