Code Monkey home page Code Monkey logo

Comments (6)

curly210102 avatar curly210102 commented on June 8, 2024 5

Because the request of https://api.github.com reached the rate limit. create-next-app request api.github.com to check repo exists(SourceCode)

Quote from github doc:

For unauthenticated requests, the rate limit allows for up to 60 requests per hour. Unauthenticated requests are associated with the originating IP address, and not the user making requests.

You can query remaining ratelimit of your IP by curl -I https://api.github.com/users/octocat. The best solution is using Basic Authentication or OAuth, unfortunately create-next-app doesn't recognize the auth parameter yet. Thus, maybe have to wait until the ratelimit reset.

@leerob When upper to the rate limit, how about giving a message and try to works with auth, or ignore the checking process just download the repo/example.

from next-learn.

anasanzari avatar anasanzari commented on June 8, 2024 2

@leerob still happening

from next-learn.

leerob avatar leerob commented on June 8, 2024

Hey! Thanks for opening an issue.

My guess is this was due to an intermittent connection issue with GitHub. I'm going to close this.

Could you please try again? If the issue persists, I'm happy to re-open and investigate further 🕵️

from next-learn.

arahansen avatar arahansen commented on June 8, 2024

I've also started running into this:

create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter-websockets trpc-prisma-starter-websockets
Could not locate the repository for "https://github.com/trpc/trpc". Please check that the repository exists and try again.

Example from this repo

from next-learn.

friari avatar friari commented on June 8, 2024

Has anyone found a solution to this? I'm also getting a message saying it could not locate the repository. When I ran curl -I https://api.github.com/users/octocat it shows that

x-ratelimit-limit: 60 x-ratelimit-remaining: 59 x-ratelimit-reset: 1707178711 x-ratelimit-resource: core x-ratelimit-used: 1

from next-learn.

slelas avatar slelas commented on June 8, 2024

Can confirm it works after waiting for a bit.

A few minutes earlier:

x-ratelimit-limit: 60
x-ratelimit-remaining: 0
x-ratelimit-reset: 1708045637

Now:

x-ratelimit-limit: 60
x-ratelimit-remaining: 59
x-ratelimit-reset: 1708049430

from next-learn.

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.