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

setEmbargoDate() returns error #70

Closed
nealhaddaway opened this issue Feb 18, 2022 · 6 comments
Closed

setEmbargoDate() returns error #70

nealhaddaway opened this issue Feb 18, 2022 · 6 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@nealhaddaway
Copy link

When creating a record, I attempt to setEmbargoDate as follows:

myrec$setEmbargoDate(strftime(presenter_data$time_start, "%Y-%m-%dT%H:%M:%S%z"))

My embargo date is a properly formatted ISO-compliant date, but I get the following error:

"Error in myrec$setEmbargoDate(strftime(presenter_data$time_start, "%Y-%m-%dT%H:%M:%S%z")) :
The embargo date should be a 'Date' object"

If I use the following date format it appears to function to an extent, but throws back an error:

myrec$setEmbargoDate(as.Date(presenter_data$time_start))
where presenter_data$time_start is "2022-02-24 12:30:00". I then get the following error:
"Error in .class1(object) : object 'publicationDate' not found"

I've tried various different formats, but nothing is working. Am I doing something stupid (I probably am, sorry!)

Thanks!

eblondel added a commit that referenced this issue Feb 18, 2022
@eblondel
Copy link
Owner

nothing stupid, but a wrong copy paste on my side, and no enough tests to make sure this method worked :-) Now it should be fixed. Can you test?

@nealhaddaway
Copy link
Author

ooh thanks - might be a problem on my end, but I'm getting a time out when trying to connect:

"Error in curl::curl_fetch_memory(url, handle = handle) :
Timeout was reached: [zenodo.org] Operation timed out after 10000 milliseconds with 0 out of 0 bytes received"

@nealhaddaway
Copy link
Author

Sorry - my bad, hadn't updated some dependencies. Checking now.

@nealhaddaway
Copy link
Author

Wait - thought it was fixed. No error, but the record hasn't registered the embargo date. And I get a new error uploading a file now:

"[zen4R][INFO] ZenodoManager - Using new file upload API with bucket: https://zenodo.org/api/files/48495b3f-b43c-434a-95fe-c8e62413af8a
Error in curl::curl_fetch_memory(url, handle = handle) :
SSL_write() returned SYSCALL, errno = 32"

@nealhaddaway
Copy link
Author

Although I may have forgotten to specify the access should be embargoed as well as providing a date...

@nealhaddaway
Copy link
Author

Yup - my bad. With setAccessRight that works a charm (now to fix the upload error... probably my fault). Love the package thanks so much!

@eblondel eblondel self-assigned this Apr 8, 2022
@eblondel eblondel added this to the 0.5 milestone Apr 8, 2022
@eblondel eblondel added the bug Something isn't working label Apr 8, 2022
@eblondel eblondel modified the milestones: 0.5, 0.6 Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants