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

Downloads blocked based on user agent? #596

Open
digitaljohn opened this issue Feb 12, 2024 · 3 comments
Open

Downloads blocked based on user agent? #596

digitaljohn opened this issue Feb 12, 2024 · 3 comments

Comments

@digitaljohn
Copy link

When I attempt to download an item from blob storage from a python script (urllib.request.urlretrieve(input_value, filename)) it fails with a 403. I can confirm it is fully public, e.g.

https://zggi1etfjuuy7hkt.public.blob.vercel-storage.com/42c8127f-82c0-4dee-a15f-d8d01cccf9bd-GIlpRfWn4ihUwaX87s5ETI1C0vLzOE.jpg

Is this intended behaviour? Is there a workaround?

@vvo
Copy link
Member

vvo commented Feb 13, 2024

@digitaljohn Thank you, we had different reports of this. It's probably a firewall blocking your (legit) python request. Could you send the request and response headers along with the body you're receiving for this request? Thank!

@digitaljohn
Copy link
Author

@vvo I do not have access to the execution environment but im using a replicate.com 'cog':

https://github.com/fofr/cog-comfyui

You can see and reattempt to run here using this failed job:
https://replicate.com/p/zvb42b3bgtmgfqpbnesgeezyjq

@digitaljohn
Copy link
Author

@vvo here is the specific line also for reference:

https://github.com/fofr/cog-comfyui/blob/main/helpers%2Fcomfyui.py#L117

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants