Subject: | File Upload to Google Drive fails. |
Date: | Mon, 08 Dec 2014 16:05:35 -0800 |
To: | bug-Net-Google-Drive-Simple [...] rt.cpan.org, m [...] perlmeister.com |
From: | Stephen Montsaroff <stephm [...] pobox.com> |
OS: Windows 7 (64)/Cygwin 1.7.32
Perl version: 5.14
Net::Google::Drive::Simple: 0.11
The file upload method in Net::Google::Drive::Simple fails with a 403
HTTP error.
This has been test on several scripts, including the distributed test
script file_upload_test.pl.
Other Net::Google::Drive::Simple operations, such as find children
appear to work.
An empty file is created on google drive.
Also, there is a bug in error handling in the module, as a call to
is_error on a response returns an undefined.
Below is a quick example output. Attached is the source of the test
code, and a more detailed dump (produced by enabling logging).
Show quoted text
> perl file_upload_test.pl test.file.txt /test
Failed with 403: Forbidden at
/usr/lib/perl5/site_perl/5.14/Net/Google/Drive/Simple.pm line 518.
Failed with 403: Forbidden at
/usr/lib/perl5/site_perl/5.14/Net/Google/Drive/Simple.pm line 518.
Failed with 403: Forbidden at
/usr/lib/perl5/site_perl/5.14/Net/Google/Drive/Simple.pm line 518.
Failed with 403: Forbidden at
/usr/lib/perl5/site_perl/5.14/Net/Google/Drive/Simple.pm line 518.
Can't call method "is_error" on an undefined value at
/usr/lib/perl5/site_perl/5.14/Net/Google/Drive/Simple.pm line 243.
--
SzsSignature
Stephen Montsaroff , Ph.D stephm@pobox.com
Swimming Bear Consulting
711 23rd Ave. E 206/568-1641 (h)
Seattle, WA 98112 206/437-2427 (c)
Message body is not shown because sender requested not to inline it.
Message body is not shown because sender requested not to inline it.