0

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?

Le Noff
  • 345
  • 1
  • 2
  • 11
  • 1
    Are you sure you selected "Allow unauthenticated" when creating your Cloud Function? Thats the only way you'll be able to trigger it by clicking on the link where you're not passing in authentication. – ianyoung Sep 16 '22 at 15:55
  • 1
    https://cloud.google.com/functions/docs/securing/managing-access-iam#allowing_unauthenticated_http_function_invocation – ianyoung Sep 16 '22 at 16:23
  • 1
    Can you confirm whether the issue has been resolved from the comments posted in this stack [link](https://stackoverflow.com/questions/73706520/error-forbidden-even-though-service-account-has-function-permission-access)? If yes, please post the resolution steps as an answer for the greater visibility of the community. – Srividya Sep 19 '22 at 05:56
  • @ianyoung No I didn't, this is what I want to avoid. I thought that being the owner of the project would allow me to use the console trigger. Thank you for your comment! – Le Noff Sep 19 '22 at 08:07

1 Answers1

0

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.

Le Noff
  • 345
  • 1
  • 2
  • 11