Task Queue Rest API v1beta2 "you are not allowed to make this api call"

392 views
Skip to first unread message

paolo francia

unread,
Aug 20, 2015, 10:42:31 AM8/20/15
to Google App Engine
I'm trying to use the Google Task Queue Rest API from:
https://developers.google.com/apis-explorer/#p/taskqueue/v1beta2/
I'm directly trying to use in the above link the "Try It" function that use my google account to test the call on the API.

The API call "Lease" and "Get" of the task workfs fine and the response is 200.
But when I try to use the "Delete" tas I get:

403 OK
- Show headers -
{
"error": {
"errors": [
{
"domain": "global",
"reason": "forbidden",
"message": "you are not allowed to make this api call"
}
],
"code": 403,
"message": "you are not allowed to make this api call"
}
}


In my app engine java project I setup the pull queue to enable my google user to access the queue
<user-email>mye...@gmail.com</user-email>      <!-- can list, get, lease, delete, and update tasks -->
<writer-email>myemail@gmail.com</writer-email>

To get the 403 error message I had to use the prefix "s~" on the projectname because if I try whitout this I get:"code": 400, "message": " project name is invalid"
I think it is not a permission issue, because if so, why the GET and LEASE call works fine?


Can anyone please help me to solve this issue?

Thanks
Paolo

Ryan (Cloud Platform Support)

unread,
Aug 21, 2015, 9:28:51 AM8/21/15
to Google App Engine
Salutations Paolo,

I just tested and was able to delete without issue. If you are still seeing this you should file a Defect Report on the Issue Tracker. I will need the following:

 - App ID
 - Code used to add the taskqueue (including the queue.xml)
 - Screenshots and HAR file for both list and delete.
 - Timestamps with timezones for when you tried.

paolo francia

unread,
Aug 21, 2015, 1:53:48 PM8/21/15
to Google App Engine
Thanks Ryan for your support.

Just found a strange behaviour:
when I call the GET on the task, I can see the field "queueName" valued like this: "projects/e~MYPROJECTNAME/pull-queue"
Then I tried to call the DELETE task with the prefix e~ before the project name, and I works fine!

I think if this is the intended behaviour is not well documented.
I hope this post will help someone in the future.

Paolo

Gabriel Montagné Láscaris-Comneno

unread,
Sep 21, 2015, 8:04:37 AM9/21/15
to Google App Engine


On Friday, August 21, 2015 at 6:53:48 PM UTC+1, paolo francia wrote:

when I call the GET on the task, I can see the field "queueName" valued like this: "projects/e~MYPROJECTNAME/pull-queue"
Then I tried to call the DELETE task with the prefix e~ before the project name, and I works fine!


Hi, 

I had the same problem and solved it in the same way.  But where does this 'e~' prefix come from? How could we, let's say programmatically know?  On other forums I've seen 's~' as well.   Is there a mention of this in the docs somewhere?  I haven't been able to know what this is.

Best,
Gabriel



Lorenz Leutgeb

unread,
Sep 21, 2015, 9:56:43 AM9/21/15
to Google App Engine
I believe the prefix "e~" says that the App Engine project is hosted in Europe, while "s~" stands for the United States.

Ryan (Cloud Platform Support)

unread,
Sep 21, 2015, 11:05:07 AM9/21/15
to Google App Engine
Lorenz is correct. e~ is for EU projects while s~ is for US projects.


On Thursday, August 20, 2015 at 10:42:31 AM UTC-4, paolo francia wrote:
Reply all
Reply to author
Forward
0 new messages