GoogleCloudPlatform / cloud-code-intellij

Plugin to support the Google Cloud Platform in IntelliJ IDEA - Docs and Issues Repository
Apache License 2.0
318 stars 59 forks source link

Follow the python flask example to deploy my Cloud Run but I got 430 error #3133

Closed liferoad closed 1 year ago

liferoad commented 1 year ago

(Please ensure you are running the latest version of Cloud Cloud IntelliJ with Help > Check for Updates.)

Run locally works well. When I tred to use Cloud Run: Deploy, the deploy was successful but I got this error when accessing the service URL:

image

Your client does not have permission to get URL / from this server.

Expected Behavior

Actual Behavior

Additional Information

Feel free to deviate from this template as needed, especially if you are submitting a feature request.

etanshaul commented 1 year ago

@liferoad , in the Run configuration settings, did you allow "unauthenticated invocations":

Screenshot 2023-04-14 at 11 01 35 AM
liferoad commented 1 year ago

To be clear, I chose "Allow unauthenticated invocations" when I deployed this service. But when I checked it on the cloud console, it is changed to Require authentication. I guess this might be caused by some org-level policy. However, I do think we probably need to mention this in the doc since a lot of users might be new to GCP.

etanshaul commented 1 year ago

interesting. thanks for the update. to confirm - once you updated its state in the cloud console were you able to access the service?

liferoad commented 1 year ago

Sorry, I haven't tried that (due to the org policy). But I think it should work.

ivanporty commented 1 year ago

@liferoad we are closing this issue since this seems to be related to your org policies vs. CR itself. Feel free to reopen if you think this is Cloud Code related issue.