Getting error while calling pubsub publish rest api

1,514 views
Skip to first unread message

Sandeep Khore

unread,
Jan 29, 2018, 9:05:45 AM1/29/18
to Google Cloud Pub/Sub Discussions

I am calling this API using postman and getting an error.
for authenticating this API I used Authorization header with access-token


{
    "error": {
        "code": 403,
        "message": "User not authorized to perform this action.",
        "status": "PERMISSION_DENIED"
    }
}

Kir Titievsky

unread,
Jan 29, 2018, 12:30:04 PM1/29/18
to Sandeep Khore, Google Cloud Pub/Sub Discussions
Hi, Sandeep. Sorry to hear that.  We'd need more detail on how you are including the access token. The first thing to check, of course, is that the account actually does have permission to publish this request.  

Another point: you might get more eyes looking at problems this specific on Stack Overflow.

--
You received this message because you are subscribed to the Google Groups "Google Cloud Pub/Sub Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/4ccbe2bb-5adc-469a-8421-52658a74bd17%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

Kir Titievsky | Product Manager | Google Cloud Pub/Sub

Avinash Kashyap

unread,
May 23, 2018, 5:41:39 PM5/23/18
to Google Cloud Pub/Sub Discussions
I am using REST/HTTP Api services for publish a topic with Api-key,and also getting same error. but i am able to call this api using access_token, please help me to call this api using api key.


On Monday, January 29, 2018 at 11:00:04 PM UTC+5:30, Kir Titievsky wrote:
Hi, Sandeep. Sorry to hear that.  We'd need more detail on how you are including the access token. The first thing to check, of course, is that the account actually does have permission to publish this request.  

Another point: you might get more eyes looking at problems this specific on Stack Overflow.

On Mon, Jan 29, 2018 at 9:05 AM Sandeep Khore <san...@moreyeahs.in> wrote:

I am calling this API using postman and getting an error.
for authenticating this API I used Authorization header with access-token


{
    "error": {
        "code": 403,
        "message": "User not authorized to perform this action.",
        "status": "PERMISSION_DENIED"
    }
}

--
You received this message because you are subscribed to the Google Groups "Google Cloud Pub/Sub Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-discuss+unsub...@googlegroups.com.

Avinash Kashyap

unread,
May 23, 2018, 5:41:39 PM5/23/18
to Google Cloud Pub/Sub Discussions

Katayoon (Cloud Platform Support)

unread,
May 24, 2018, 2:23:51 PM5/24/18
to Google Cloud Pub/Sub Discussions
I should note that using API keys are limited by the mentioned GCP services and Cloud Pub/Sub isn’t included. Cloud Pub/Sub uses Google Cloud Identity and Access Management (Cloud IAM) for access control.
Reply all
Reply to author
Forward
0 new messages