Code Monkey home page Code Monkey logo

Comments (11)

errcw avatar errcw commented on September 28, 2024 1

I believe the right answer is to change the default source where we fetch the XML files. It appears that Khronos maintains its GitHub repositories but not its SVN ones. Unfortunately it means pulling the files from more locations. The docs appear to be located in https://github.com/KhronosGroup/OpenGL-Refpages, and egl.xml appears to be located in https://github.com/KhronosGroup/EGL-Registry. Perhaps the easiest answer is to remove the download command and instead add documentation from where to fetch the files?

from glow.

kjozic avatar kjozic commented on September 28, 2024 1

I made support for GitHub basic auth.

from glow.

kjozic avatar kjozic commented on September 28, 2024

I rewrote main.go and download.go (link, branch OpenGL4.6) to fetch the XML files from GitHub but there is a problem with hourly rate limit. For unauthenticated requests, the rate limit is 60 requests per hour which is not enough to download all the files.

from glow.

dmitshur avatar dmitshur commented on September 28, 2024

We can make it a requirement to supply a github token to get the authenticated rate limit of 5000 per hour.

from glow.

errcw avatar errcw commented on September 28, 2024

I'm attempting to resolve this in #92.

from glow.

dmitshur avatar dmitshur commented on September 28, 2024

@errcw Did you see #91 before making #92? If so, can you explain in what ways do they differ?

from glow.

errcw avatar errcw commented on September 28, 2024

Alas, no. I commented on that review. I'll drop #92 once #91 goes in.

from glow.

kjozic avatar kjozic commented on September 28, 2024

When I try to download gl.xml, the empty file is returned. The cause of the error is the file size:

{
  "message": "This API returns blobs up to 1 MB in size. The requested blob is too large to fetch via the API, but you can use the Git Data API to request blobs up to 100 MB in size.",
  "errors": [
    {
      "resource": "Blob",
      "field": "data",
      "code": "too_large"
    }
  ],
  "documentation_url": "https://developer.github.com/v3/repos/contents/#get-contents"
}

Please check the pull request "Add support for download of files larger than 1 MB.".

from glow.

dmitshur avatar dmitshur commented on September 28, 2024

Is this issue resolved by #91 and #94 (which have been merged by now)?

from glow.

kjozic avatar kjozic commented on September 28, 2024

Yes. You can close the issue.

from glow.

dmitshur avatar dmitshur commented on September 28, 2024

We should download and commit the latest XML from the new source to fully resolve this issue. Reopening for that.

from glow.

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.