開発しているWebサービスで、Google Drive APIの
変更通知機能を使っていたら、
POST https://www.googleapis.com/drive/v3/files/fileId/watch
{ "error": { "errors": [ { "domain": "global", "reason": "subscriptionRateLimitExceeded", "message": "Rate limit exceeded for creating file subscriptions." } ], "code": 403, "message": "Rate limit exceeded for creating file subscriptions." } }
というエラーが返ってきた。
以下の公式ドキュメントをみても書いてなく、
・Resolve errors | Drive API | Google Developers
色々探してみると、同じエラーになっている人が。。
・Google Drive API file subscription rate limit (403 subscriptionRateLimitExceeded) - Stack Overflow
StackOverflowの回答を見ると、
・変更を監視できる隠し上限があり、
・割当上限の増加申請ができない
とのこと。。(´・ω・\`)
残念だけど、定期的ポーリングで監視するのが良さそうなので、
処理方式を変更した。。(´・ω・\`)