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

only small portions of files are uploaded #44

Open
twshield opened this issue Feb 16, 2021 · 1 comment
Open

only small portions of files are uploaded #44

twshield opened this issue Feb 16, 2021 · 1 comment

Comments

@twshield
Copy link

twshield commented Feb 16, 2021

version 19 from CPAN tar file (and Simple.pm is same as v20 from git) is only uploading a small amount of information. Uploaded files are 7 or 12 bytes long.

Here is debugging output from my script (it first checks for files in a drive folder, and then uploads the missing files. After upload it compares MD5 sums to see it succeeded, the new file it is trying to upload is junk.tar.gz.gpg which is about 6 MB in size. A successful upload takes about 30 seconds as opposed to the 2 seconds this upload took).

GDS-debug-log-2021-2-16.txt

I cut and pasted in the file_upload() routine from a previous version of Simple.pm that uses slurp to get the file contents instead of setting the contents field in the header to the sub reference returned by _content_sub() and the file uploads successfully. Putting debugging output inside the sub returned by _content_sub() never produced any output. So it seems that it is not even trying to get any content to upload.

This is on Fedora 33 with requirements from either Fedora repositories or latest tar files from CPAN, couple of what seem to be key ones are:
perl-Net-HTTP-6.20-1.fc33.noarch
perl-LWP-Protocol-https-6.10-1.fc33.noarch

Thanks,

Tom

@atoomic
Copy link
Collaborator

atoomic commented Jan 29, 2022

the release of Net-Google-Drive-Simple-0.21 v0.21 should fix your issue
please confirm so we can close this issue

otherwise please provide steps to reproduce

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