Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cloud Pub/Sub Demo : 403 User not authorized to perform this action. when try to push notification

I am learning Google Cloud Pub/Sub and following this official document : Writing and Responding to Pub/Sub Messages - Python

When I deploy it to cloud, and try to submit the message, enter image description here I get the following error :

An internal error occurred: 403 User not authorized to perform this action. (POST https://pubsub.googleapis.com/v1/projects/your-project-id/topics/your-topic:publish) See logs for full stacktrace.

I guess it's due to some authentication problem? Any help would be appreciated.

like image 284
yusong Avatar asked Jun 03 '16 21:06

yusong


1 Answers

Make sure that the client you are using is authorized to publish to Pub/Sub. See details here. If your client belongs to the same project as the topic, typically it won't require additional access control configuration. Make sure that your client is authenticated properly.

like image 175
Emilio Schapira Avatar answered Sep 20 '22 00:09

Emilio Schapira