403 Forbidden error when accessing Google Drive API downloadURL

11,222

Solution 1

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

Solution 2

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

Share:
11,222
Shah Rushabh
Author by

Shah Rushabh

Champion of the future, HTML and robots. Creator of Question Park.

Updated on June 23, 2022

Comments

  • Shah Rushabh
    Shah Rushabh almost 2 years

    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!

  • Shah Rushabh
    Shah Rushabh over 11 years
    That was it thanks! Looks like I'll have to rethink my approach.