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

Blocked policy - drive.google.com #378

Closed
berejant opened this issue May 29, 2023 · 2 comments
Closed

Blocked policy - drive.google.com #378

berejant opened this issue May 29, 2023 · 2 comments
Assignees
Labels
bug Something isn't working completed Feature or request has been completed

Comments

@berejant
Copy link

Weserv blocks image hosted at Google Drive:

Example 1:
Origin URL: https://drive.google.com/uc?export=view&id=1fKbjdN_V6lLNTfY1uoA1oaLMSSQEN_a2
Weserv URL: https://images.weserv.nl/?url=https%3A%2F%2Fdrive.google.com%2Fuc%3Fexport%3Dview%26id%3D1fKbjdN_V6lLNTfY1uoA1oaLMSSQEN_a2

Example 2:
Origin url: https://drive.google.com/uc?export=view&id=1NA69YsCf1BhIXvGSr-RMB64DurPc5qAo
Weserv url: https://images.weserv.nl/?url=https%3A%2F%2Fdrive.google.com%2Fuc%3Fexport%3Dview%26id%3D1NA69YsCf1BhIXvGSr-RMB64DurPc5qAo&w=238&h=163

Acutal error:
{"status":"error","code":404,"message":"The hostname of the origin is unresolvable (DNS) or blocked by policy."}

@andrieslouw
Copy link
Member

Will need to investigate, as Google likes to block our servers/IP-ranges. See also #231.

@andrieslouw andrieslouw self-assigned this May 29, 2023
@andrieslouw andrieslouw added the triage This issue is being investigated label May 29, 2023
kleisauke added a commit that referenced this issue Jun 30, 2023
To accommodate 4 memory pages, e.g. 16k on most platforms.
@kleisauke
Copy link
Member

It appears that Google Drive now sends a response header of significant size, exceeding our default 4k limit.

$ curl --http1.1 -fsSL -o /dev/null -w "%{size_header}\n" 'https://drive.google.com/uc?export=view&id=1fKbjdN_V6lLNTfY1uoA1oaLMSSQEN_a2'
5604

This has been fixed with commit ca63088, which has just been rolled out to production. Thanks for reporting this!

@kleisauke kleisauke added bug Something isn't working completed Feature or request has been completed and removed triage This issue is being investigated labels Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working completed Feature or request has been completed
Development

No branches or pull requests

3 participants