Skip to content

Vercel Sync Hitting Rate Limits #679

@m-braha

Description

@m-braha

Describe the bug

When syncing many secrets to a Vercel environment, it can fail because it hits Vercel-enforced API rate limits. Specifically, I believe it's this project env var delete endpoint:

Image

The intermittent error:

Failed to sync secrets: Error deleting environment variable: {"error":{"code":"rate_limited","name":"api-projects-environment-variable-delete","message":"Too many requests - try again in 39 seconds (more than 60, code: \"api-projects-environment-variable-delete\").","limit":{"total":60,"remaining":0,"reset":1761602721}}}

To Reproduce

Steps to reproduce the behavior:

  1. Create an app with 20+ secrets in an environment
  2. Sync it to Vercel
  3. Occasionally, the sync fails from rate limiting.

At this point, Vercel deployments start to fail because required env vars are missing.

Expected behavior

We can put as many secrets as we want, in multiple apps and multiple environments, and sync all of them to our Vercel reliably, without worrying about underlying Vercel API rate limits.

Screenshots

If applicable, add screenshots to help explain your problem.

Platform you are having the issue on:

Additional context

Our specific Phase app having this issue has 8 separate Vercel syncs configured. This Phase app represents a new monorepo we are exploring so these syncs go to different Projects and different Environments in Vercel.

There are many common secrets between the code packages in this monorepo, so creating one Phase app for all of it felt most natural.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions