Stuart Memo
Stuart Memo

Reputation: 1178

403 Forbidden error when accessing Google Drive API downloadURL

I've been doing a lot of development locally with the Google Drive API, but suddenly I'm no longer able to access files using the downloadUrl link.

I'm wondering if I've been blocked or anything, although I can't see how as I should be well under the API limit. The 403 isn't the friendly Google one, but a standard:

HTTP Error 403 (Forbidden): The server refused to fulfill the request

Any ideas? Thanks!

Upvotes: 3

Views: 12378

Answers (2)

MIkka Marmik
MIkka Marmik

Reputation: 1102

you are accessing google drive file using download url bt download url is expired after some time so that you catch error and generate new request for that file

Upvotes: 1

Ali Afshar
Ali Afshar

Reputation: 41633

Check the error messages on the 403 responses, it will give you some information. You may have to perform exponential backoff.

Upvotes: 2

Related Questions