deploy-env
deploy-env copied to clipboard
Handle Too many requests
Hi,
When adding a lot of env variables, I get rate limited by Vercel. However, it is currently not detected and eventually the command fails. Maybe detect & sleep for x seconds? Thanks!
Added Environment Variable NUXT_ENV_RECAPTCHA_KEY to Project umsfront [2s] Error! Too many requests - try again in 46 seconds (more than 120, code: "api-projects"). (429) Error! Too many requests - try again in 46 seconds (more than 120, code: "api-projects"). (429) /bin/sh: -c: line 1: syntax error: unexpected end of file /bin/sh: -c: line 0: `echo -n (xxxxx) | vercel env add NUXT_ENV_HOME_LEGAL production' Error! Too many requests - try again in 46 seconds (more than 120, code: "api-projects"). (429) Error! Too many requests - try again in 45 seconds (more than 120, code: "api-projects"). (429) Error! Too many requests - try again in 46 seconds (more than 120, code: "api-projects"). (429) Error! Too many requests - try again in 46 seconds (more than 120, code: "api-projects"). (429) Error! Too many requests - try again in 45 seconds (more than 120, code: "api-projects"). (429) Error! Too many requests - try again in 45 seconds (more than 120, code: "api-projects"). (429) /bin/sh: more!: command not found Vercel CLI 19.1.1 Error! Too many requests - try again in 44 seconds (more than 120, code: "api-projects"). (429) Error! Too many requests - try again in 43 seconds (more than 120, code: "api-projects"). (429) Error! Too many requests - try again in 43 seconds (more than 120, code: "api-projects"). (429) Error! Too many requests - try again in 43 seconds (more than 120, code: "api-projects"). (429) Error! Too many requests - try again in 43 seconds (more than 120, code: "api-projects"). (429) Error! Too many requests - try again in 43 seconds (more than 120, code: "api-projects"). (429) Error! Too many requests - try again in 43 seconds (more than 120, code: "api-projects"). (429) Error! Too many requests - try again in 43 seconds (more than 120, code: "api-projects"). (429) Error! Too many requests - try again in 41 seconds (more than 120, code: "api-projects"). (429) Error! Too many requests - try again in 41 seconds (more than 120, code: "api-projects"). (429) Error! Too many requests - try again in 41 seconds (more than 120, code: "api-projects"). (429) Error! Too many requests - try again in 41 seconds (more than 120, code: "api-projects"). (429) Error! Too many requests - try again in 41 seconds (more than 120, code: "api-projects"). (429) /bin/sh: more!: command not found Vercel CLI 19.1.1 Error! Too many requests - try again in 41 seconds (more than 120, code: "api-projects"). (429) Error! Too many requests - try again in 41 seconds (more than 120, code: "api-projects"). (429) Error! Too many requests - try again in 41 seconds (more than 120, code: "api-projects"). (429) Error! Too many requests - try again in 39 seconds (more than 120, code: "api-projects"). (429) Error! Too many requests - try again in 38 seconds (more than 120, code: "api-projects"). (429) /bin/sh: More!: command not found Vercel CLI 19.1.1 Error! Too many requests - try again in 38 seconds (more than 120, code: "api-projects"). (429) groups.: No such file or directory Vercel CLI 19.1.1 Error! Too many requests - try again in 38 seconds (more than 120, code: "api-projects"). (429) Error! Too many requests - try again in 38 seconds (more than 120, code: "api-projects"). (429)
🤯 I haven't personally tested deploying that many environment variables.
I will look into potential solutions.
This tool is very useful. I have same problem.
It's not a radical measure, but could we have, for example, a configurable option to have the interval of an API call?
Or can't we have the option to just do the writing without deleting env variable?