CloudRun + Firebase Hosting: Invalid websocket upgrade #3563
Unanswered
sapphire008
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Hi,
I am trying to deploy a NiceGUI app on CloudRun and use Firebase Hosting to configure my CDN and custom domains. The deployed app on CloudRun has no issues; all functionalities work as expected. However, when I integrate Firebase Hosting with Cloud Run, I can still visit the site under the Firebase Hosting public URLs; I can also visit any subpages. However, none of the buttons that trigger my Python functions work. I inspected the console of my Chrome browser, and found:
The corresponding error in my CloudRun log shows
This issue seems to be related: #2781. I did not initially set up nginx frontend proxy. But to follow the solution provided in that issue, I set up nginx using the solutino provided by CloudRun as described here: https://cloud.google.com/run/docs/internet-proxy-nginx-sidecar. But the problem still persists. Here is my nginx.conf
Here is my CloudRun deployment
I have checked from the Firebase Hosting site that the Upgrade headers are indeed being added. But it seems like something additional is needed here.
Beta Was this translation helpful? Give feedback.
All reactions