Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP 403 error when accessing Googe Drive data #215

Closed
ivmartel opened this issue Mar 8, 2016 · 7 comments
Closed

HTTP 403 error when accessing Googe Drive data #215

ivmartel opened this issue Mar 8, 2016 · 7 comments
Labels
bug Something isn't working
Milestone

Comments

@ivmartel
Copy link
Owner

ivmartel commented Mar 8, 2016

Sometimes, the loading of Google Drive DICOM data fails with a HTTP 403 error. Refreshing fixes the problem but it can occur another time with different data.

@ivmartel ivmartel added the bug Something isn't working label Mar 8, 2016
@ivmartel ivmartel added this to the 0.15.0 milestone Mar 8, 2016
@ivmartel
Copy link
Owner Author

Not able to reproduce with Google Chrome 51 or Firefox 47...

@ivmartel ivmartel modified the milestones: 0.16.0, 0.15.0 Jul 13, 2016
@ivmartel
Copy link
Owner Author

Postponing to next release.

@ivmartel
Copy link
Owner Author

Able to reproduce! Can it be related to new data (ie recently uploaded...)?

When clicking the failing link, I get: The referrer null does not match the referrer restrictions configured on your API key. Please use the API Console to update your key restrictions.

@ivmartel ivmartel modified the milestones: 0.18.0, 0.17.0 Dec 18, 2016
@ivmartel
Copy link
Owner Author

Seems to happen anytime... I just got it with previously uploaded data.

New, slightly different, message: The request did not specify any referer. Please ensure that the client is sending referer or use the API Console to remove the referer restrictions.

Switching to IP referer based restriction instead of website...

@ivmartel
Copy link
Owner Author

ivmartel commented Jan 27, 2017

Ok, my mistake 😁 ... The error that I got when clicking the link is normal, there cannot be a referer when you click the request link that triggered the error... The good way of doing it is to, in Google Chrome, switch the network tab on and refresh the page.

That way I saw the error was related to quotas of queries per second. The code was sending one request per file and the quota seems to be roughly 10 queries/s. So you couldn't load more than 10 slices at once. The solution is to use a batch request to group requests in one. See commit 0524cf5.

Referer is back to website with my github pages and the Google apis content one.

@ivmartel
Copy link
Owner Author

⚠️ If the error still persists, it is probably due to using a cached version of the code. Clearing your browser cache should fix the problem...

@ivmartel
Copy link
Owner Author

ivmartel commented Feb 4, 2017

One week after the fix, the console says: 1,715 requests, 5 errors (0.29%).
Looks good enough for me, closing!

@ivmartel ivmartel closed this as completed Feb 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant