Google Drive API quota exceeded

后端 未结 2 2062
执念已碎
执念已碎 2021-01-25 16:39

I\'m creating a channel that receive changes on users that are on my application. The main problem is that after 2-3 webhooks, I receive an error that says that user has exceede

2条回答
  •  离开以前
    2021-01-25 17:08

    There was an error in the code. I had to change the following:

    PageToken = changes.getNewStartPageToken();
    

    to

    pageToken = changes.getNextPageToken();
    

    The huge amount of queries was because I was requesting on every loop a new start page token, forcing an infinite loop.

提交回复
热议问题