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

Works on my macbook, but not on amazon ec2 #282

Open
Raphael-Quinones opened this issue Sep 13, 2023 · 1 comment
Open

Works on my macbook, but not on amazon ec2 #282

Raphael-Quinones opened this issue Sep 13, 2023 · 1 comment
Labels
bug for issue

Comments

@Raphael-Quinones
Copy link

Raphael-Quinones commented Sep 13, 2023

Provide environment information

Amazon EC2 instance (Ubuntu)

/home/ubuntu/mydir/venv/bin/python
Python 3.10.12
gdown              4.7.1

My Macbook ()

/Users/me/Documents/VS Code/mydir/venv/bin/python
Python 3.10.6
gdown              4.7.1

What OS are you using?

Ubuntu

Describe the Bug

Downloading google docs file
https://docs.google.com/document/u/1/d/1xCz_3YHDp1-Cj0fWxdQHHGI1Vq2e5GUgkyjSrD9qV_Y/edit

Using URL

/home/ubuntu/mydir/venv/lib/python3.10/site-packages/gdown/parse_url.py:44: 
UserWarning: You specified a Google Drive link that is not the correct link to download a file. 
You might want to try `--fuzzy` option or the following url: 
https://drive.google.com/uc?id=1xCz_3YHDp1-Cj0fWxdQHHGI1Vq2e5GUgkyjSrD9qV_Y
  warnings.warn(

Using ID

Access denied with the following error:

        Cannot retrieve the public link of the file. You may need to change
        the permission to 'Anyone with the link', or have had many accesses. 

You may still be able to access the file from the browser:

         https://drive.google.com/uc?id=1xCz_3YHDp1-Cj0fWxdQHHGI1Vq2e5GUgkyjSrD9qV_Y 

Shows this warning on Amazon EC2 when using gdown.download() And, the downloaded file is not properly downloaded.

This works well with the same parameters on my macbook.

Expected Behavior

File should be downloaded properly without warnings

To Reproduce

No response

@Raphael-Quinones Raphael-Quinones added the bug for issue label Sep 13, 2023
@Stefan2142
Copy link

Dont amazon blocks outbound requests by default somewhere in the config/firewall and you need to unblock it/allow it?

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

No branches or pull requests

2 participants