mschilli / net-google-drive-simple

Net::Google::Drive::Simple CPAN Module
Other
11 stars 22 forks source link

only small portions of files are uploaded #44

Open twshield opened 3 years ago

twshield commented 3 years ago

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 commented 2 years ago

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