Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Blank webpage after successful build and deployment of Docker image in Cloud Run

Dear Team,

Facing below which is present in screen shot white deploying an application in Cloud Run.

Deployment is successful in Cloud Run. But when URL opened, blank page appearing and in console the below errors show

Please help to fixe the issue. Thanks

Note: All files used for Docker are present directly in the app directory (no subfolders such public etc.,)

 

braojntu_0-1629667298835.png

 

0 1 790
1 REPLY 1

I think we are going to have to look at what your Cloud Run applications is expecting to run.  As you realize, a deployed Cloud Run app returns responses based on incoming REST requests.  If you are trying to open a browser page to a Cloud Run endpoint, we will want to look at exactly what is returned.  Maybe run a "curl" command with a GET request to that endpoint and capture what is returned.   If I were to make a rough guess, based on the information you posted, it is that your Cloud Run is returning HTML and in that HTML there is an attempt to load a style sheet.  I believe that the style sheet may be called "age.css".  If the style sheet is not an absolute URL but is instead a relative URL then the request will attempted to be served from the URL that served the original HTML ... which might return you BACK to the Cloud Run server which may not be coded to return the expected CSS.  Can you investigate whether or not your Cloud Run is coded to return "age.css" content?