Git Product home page Git Product logo

Comments (2)

windymay avatar windymay commented on June 2, 2024

I did not use cdx server api before so I don't know its behavior before but it seems that with a large page number, the request would eventually return 400, for example with page=0
https://index.commoncrawl.org/CC-MAIN-2020-50-index?url=http%3A%2F%2Fwww.illinoishomepage.net%2Fnews%2Flocal-news%2Fman-who-fell-through-ice-dies&output=json&page=0
return 404, text is "error no capture".
But with page=1,
https://index.commoncrawl.org/CC-MAIN-2020-50-index?url=http%3A%2F%2Fwww.illinoishomepage.net%2Fnews%2Flocal-news%2Fman-who-fell-through-ice-dies&output=json&page=1
returns 400 and get_more() will move to next endpoint.

But for my example above, for CC-MAIN-2017-34-index, no matter what the page number is, for example, page=1000000, https://index.commoncrawl.org/CC-MAIN-2017-34-index?url=http%3A%2F%2Fwww.illinoishomepage.net%2Fnews%2Flocal-news%2Fman-who-fell-through-ice-dies&output=json&page=1000000
still returns 404 with text "error no capture". And get_more() will keep increasing the page number and retry.

from cdx_toolkit.

wumpus avatar wumpus commented on June 2, 2024

Sebastian fixed this bug on the Common Crawl side, it was a missing index file for just that one index. It happened because the index moved to a new server recently. Thanks for finding it!

I will add some kind of guard to the code, so this infinite loop is at least a visible infinite loop.

from cdx_toolkit.

Related Issues (18)

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.