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

[Bug]: Cloud Run IAP Load Balancer - Streamlit Websocket Issue #1086

Open
1 task done
deleomike opened this issue Sep 13, 2024 · 3 comments
Open
1 task done

[Bug]: Cloud Run IAP Load Balancer - Streamlit Websocket Issue #1086

deleomike opened this issue Sep 13, 2024 · 3 comments
Assignees

Comments

@deleomike
Copy link

File Name

gemini/sample-apps/gemini-streamlit-cloudrun

What happened?

My team (@JoshLuxton) and I stood up this sample app in cloud run, IAP and load balancer with the following instructions/documentation. We believe we followed all the instructions correctly, but we're encountering the following issue with trying to hit the public facing endpoint where the Streamlit app isn't able to complete the web socket connection. The page comes up blank:
Screenshot 2024-09-13 at 2 59 08 PM

And we get the following error on the console output.
Screenshot 2024-09-13 at 3 35 00 PM

Any help understanding this issue is appreciated, and I can provide more context if needed.

Relevant log output

main.33cac65c.js:10 WebsocketConnection WebSocket onerror
a @ main.33cac65c.js:10Understand this error
main.33cac65c.js:19 WebSocket connection to 'wss://*********/_stcore/stream' failed:

Code of Conduct

  • I agree to follow this project's Code of Conduct
@vend2804
Copy link

we have the same issue. Anyone knows how to fix this?

@deleomike
Copy link
Author

we have the same issue. Anyone knows how to fix this?

My team switched to mesop since its version 0.12 didn't use web sockets. However, It's a lot more involved than streamlit.

@vend2804
Copy link

I found a solution on another thread on config.toml
[server]
headless = true
enableCORS=false
enableXsrfProtection=false
enableWebsocketCompression=false
port = 8080

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

4 participants
@vend2804 @deleomike @lavinigam-gcp and others