7
votes

I tried to execute gmail api's watch on my two gmail accounts and it works fine.

But when the other user tried to do so, it shows this error:

HTTP error 400 : "Only one user push notification client allowed per developer (call /stop then try again)">

I don't know if the problem is on the pub/sub client configuration or doing stop and watch will resolve the problem?

Can someone explain the meaning of this statement "Only one user push notification client allowed per developer"?

2
It sounds like each "registered" app can only be running one connection to Gmail. Maybe try creating another client key. - abraham
Your question doesn't really contain enough detailed technical info. What do you mean by "I tried to execute gmail api's watch on my two gmail accounts and it works fine"? What do you mean by "But when the other user tried to do so"? - Nick
I've got same error recently, so I've decided before executing /watch to renew subscription, to call /stop first (just in case) stackoverflow.com/a/45019396/771379 - dikirill

2 Answers

1
votes

Try using a different project for the Cloud Pub/Sub topic that the other user wants to set up a Gmail API watch on.

0
votes

I have encountered a similar issue. Although this might not be helpful to the OP, for me the solution was to abandon Google's Pub/Sub and use IMAP IDLE instead, which is much better suited for OP's use case of monitoring several inboxes.