Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

Can't call method "epoch" on an undefined value at /usr/local/bin/dropbox-api line 1115 #32

Open
woodsb02 opened this issue Dec 19, 2016 · 6 comments

Comments

@woodsb02
Copy link

On FreeBSD 12-current r310018, I am getting the following error when trying to sync with dropbox-api-command-2.09:

$ dropbox-api sync dropbox:/ Dropbox/
Can't call method "epoch" on an undefined value at /usr/local/bin/dropbox-api line 1115.

Line 1115 is:
my $remote_epoch = $strp->parse_datetime($content->{client_modified})->epoch;

Note that I have p5-DateTime-Format-Strptime-1.70 installed.

Any ideas what this could be?

@rixkTM
Copy link

rixkTM commented Dec 29, 2016

Exactly the same issue on FreeBSD 11.0-RELEASE-p6 and dropbox-api-command-2.09,1.

@Guymer
Copy link

Guymer commented Dec 31, 2016

Same here, this has only started happening recently. I am running FreeBSD "11.0-RELEASE-p6" and dropbox-api-command "2.09,1" too. An update of all outdated Perl modules followed by a reinstallation of dropbox-api-command did not fix the problem. I have no experience of Perl so I cannot be much use on this one, sorry.

@s-aska
Copy link
Owner

s-aska commented Jan 1, 2017

It fixed it with this fix.

752344f

Thank you and happy new year!

@woodsb02
Copy link
Author

woodsb02 commented Jan 1, 2017

Hi s-aska,
Thanks for the fix, however it is still giving me an error:

$ dropbox-api sync Dropbox/ dropbox:/
upload test.txt /test.txt
2017-01-02T01:39:21 [WebService::Dropbox] [ERROR] https://content.dropboxapi.com/2/files/upload {"path":"/test.txt","mode":"overwrite","client_modified":"2017-01-01T17:37:16ZZ"} -> [400] Error in call to API function "files/upload": HTTP header "Dropbox-API-Arg": client_modified: unconverted data remains: Z at /usr/local/lib/perl5/site_perl/WebService/Dropbox.pm line 184.
Error in call to API function "files/upload": HTTP header "Dropbox-API-Arg": client_modified: unconverted data remains: Z at /usr/local/bin/dropbox-api line 981.

Regards,
Ben

@s-aska
Copy link
Owner

s-aska commented Jan 1, 2017

I think that it was fixed in 2.11, Thank you for confirmation.

7c9ceb9

@Guymer
Copy link

Guymer commented Jan 2, 2017

Thank you @s-aska that fixed it (and thank you @woodsb02 for pushing the update out to the ports tree quickly).

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

No branches or pull requests

4 participants