Pliavi
Pliavi5mo ago

Strange github rate limit on local deployment

I was really interested in check local deployment, actually I have already tried before and was working like charm, but suddenly i'm getting this github rate limit error when I try to run it locally(cloud deployment works) There are anything I can do to solve that?
No description
8 Replies
ballingt
ballingt5mo ago
Not much option other than to wait! Looks like we should add support for setting a GitHub API token in an environment variable. Longer term we can set up a CDN and host these there, but publishing them via GitHub releases is pretty darn useful. I think we said in that commit we'd stick to that until people started having issues, good to know that's happening. Well an option would be to use a different IP, via a VPN or otherwise tunneling your traffic
ballingt
ballingt5mo ago
It's fetch calls like these https://github.com/get-convex/convex-js/blob/6513ee9024cc756d126e287753b9e995596668f4/src/cli/lib/localDeployment/download.ts#L111 to GitHub that we need to optionally thread a header
'Authorization': `Bearer ${token}`
'Authorization': `Bearer ${token}`
token in if a process.env.GITHUB_TOKEN is available, if anyone wants to make a PR
GitHub
convex-js/src/cli/lib/localDeployment/download.ts at 6513ee9024cc75...
TypeScript/JavaScript client library for Convex. Contribute to get-convex/convex-js development by creating an account on GitHub.
Pliavi
PliaviOP5mo ago
Oh, thanks Tom! Maybe something with my internet provider, cause I'm not even close of getting into the limit showing in the gh docs Ill try with a vpn, thanks! o/ To the PR, the idea would something like a config to set the gh token from the cli and/or read from the .env?
ballingt
ballingt5mo ago
Yeah, read from env, something like process.env.GITHUB_TOKEN
Mupu
Mupu3mo ago
im also running into this issue. Is there a workaround now? how often is this fetched that i get limited? I just started the cli 3 or 4 times
ballingt
ballingt3mo ago
I just added a workaround, what version of convex are you on?
Mupu
Mupu3mo ago
1.26.1
ballingt
ballingt3mo ago
Could you post the error you get the next time you see it? Either here or in a GitHub issue. I fixed what I thought was the most common version of this, but there's more to do. This is the one I fixed: https://github.com/get-convex/convex-js/issues/73
GitHub
Convex dev local offline error · Issue #73 · get-convex/convex-js
Hello There! I was trying to start a local instance for development while offline (on a plane) and got this error. ❯ npx convex dev --local ✖ Failed to get latest convex backend releases ✖ Hit an e...

Did you find this page helpful?