Giter VIP home page Giter VIP logo

Comments (8)

tobiasschweizer avatar tobiasschweizer commented on May 29, 2024 1

using -no-intervals works

from metha.

tobiasschweizer avatar tobiasschweizer commented on May 29, 2024 1

Yes, it is strange. It used to work some months back which is why I wrote an email to zenodo to find out whether the changed any settings. It is weird that the indicate an Earliest Datestamp 2014-02-03T14:41:33Z and then nothing is returned from that interval.

Thanks for the fix. I'll try it out and get back to you.

from metha.

tobiasschweizer avatar tobiasschweizer commented on May 29, 2024 1

I can confirm that with 0.3.2 I am able to harvest without the -no-intervals flag. Thanks for fixing that so quickly!
In case a get answer from zenodo explaining the behaviour, I'll let you know.

from metha.

miku avatar miku commented on May 29, 2024

Interesting. It seems that your example query does not match any record, and the server chooses to return an HTTP/1.1 422 UNPROCESSABLE ENTITY for that. I added a workaround for the 422 error (although I haven't seen this failure that much in other endpoints, yet).

from metha.

tobiasschweizer avatar tobiasschweizer commented on May 29, 2024

I have just heard from Zenodo. They logged the issue and will report back with an update once the fixed it.

from metha.

miku avatar miku commented on May 29, 2024

Thanks for the update. Somehow, HTTP 422 does not seem so wrong, after all:

The HyperText Transfer Protocol (HTTP) 422 Unprocessable Content response status code indicates that the server understands the content type of the request entity, and the syntax of the request entity is correct, but it was unable to process the contained instructions. -- https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/422

The OAI spec is not against using additional HTTP status codes: http://www.openarchives.org/OAI/openarchivesprotocol.html#StatusCodes

OAI-PMH repositories MAY employ HTTP Status-Codes in addition to "200 OK".

If I find other endpoints using HTTP 422, I'll make a note.

from metha.

tobiasschweizer avatar tobiasschweizer commented on May 29, 2024

Still I don't understand why the earliest timestamp would not return any data.

from metha.

miku avatar miku commented on May 29, 2024

The missing earliest timestamp issue I saw in other endpoints as well and that should be fixable.

from metha.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.