I wrote an Asp web application in .net Core 5.0 for google cloud. The applicatin delpoyed as CloudRun using the following command
gcloud run deploy cdm-viewer-wacore --image gcr.io/mot-cz-test/mot-cdm-viewer-wacore:v48 --platform managed --vpc-connector mot-test-connector --region=europe-west1 --project=project1 --set-env-vars=ProjectId=project1
The application works properly in project1, but when deploying to the same image in another project (project2), the application gives an error message
Failed to determine the https port for redirect.
It is quite clear that there is a difference in the settings / properties of cloudrun between the projects. What differences can cause this error?