Search code examples
google-cloud-platformtriggerspermissionsgoogle-cloud-functionspermission-denied

"Error: Forbidden" http console trigger doesn't work even though I am the project owner


I deployed a Cloud Function but when I manually click on the Trigger URL in the console trigger I get this error:

Error: Forbidden Your client does not have permission to get URL /entry-point from this server.

I don't understand why am I getting this because I am the project owner and I even added the cloudfunctions.invoker role to my user account. A comment from this post confirms that it should work.

Does anyone has an idea on how to fix this issue?


Solution

  • So apparently, the cause of the issue is that I didn't allow unauthenticated, and this is the only way to use the control trigger.

    This link shows how to change this setting.