GoogleCloudPlatform / GoogleCloudPlatform/generative-ai
[Bug]: Cloud Run IAP Load Balancer - Streamlit Websocket Issue
- Dominant language
- Jupyter Notebook
- Stars
- 17.7k
- Forks
- 4.5k
- Avg merge
- 12h 38m
- Merged PRs (30d)
- 42
Description
### 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](https://cloud.google.com/vertex-ai/generative-ai/docs/streamlit/streamlit-genai-iap). 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:

And we get the following error on the console output.
Any help understanding this issue is appreciated, and I can provide more context if needed.
### Relevant log output
```shell
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
- [X] I agree to follow this project's Code of Conduct
Contributor guide
Assessment
This issue has not been assessed yet.