Pliavi
Pliavi2mo 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
4 Replies
ballingt
ballingt2mo 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
ballingt2mo 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
PliaviOP2mo 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
ballingt2mo ago
Yeah, read from env, something like process.env.GITHUB_TOKEN

Did you find this page helpful?