Troubleshooting (Vercel)
This page summarizes common provider errors detected by OpenDeploy and actionable remedies. When an operation fails, OpenDeploy maps raw errors to stable codes and prints human‑friendly guidance. In JSON/NDJSON modes, these appear in the output as code, message, and optional remedy fields.
See implementation: src/utils/errors.ts
Note: Netlify is not supported by OpenDeploy. Please use the official Netlify CLI.
Vercel
OpenDeploy maps common Vercel CLI issues to human guidance:
-
VERCEL_AUTH_REQUIRED
- Cause: Not logged in to Vercel.
- Remedy:
vercel login
-
VERCEL_AUTH_EXPIRED
- Cause: Authentication expired or unauthorized (401).
- Remedy:
vercel login(or setVERCEL_TOKENin CI).
-
VERCEL_NOT_LINKED
- Cause: Directory not linked to a project.
- Remedy:
vercel link(or pass--project/--orgin CI).
-
VERCEL_INVALID_PROJECT_OR_TEAM
- Cause: Invalid/unknown Vercel project/org/team.
- Remedy: Verify
VERCEL_PROJECT_ID/VERCEL_ORG_IDor use--project/--org; alternatively runvercel link.
-
VERCEL_BUILD_FAILED
- Cause: Build failed during Vercel deployment.
- Remedy: Inspect logs:
opd deploy logs vercel --follow; runnext buildlocally; check env withopd env diffandopd env validate.
-
NODE_MODULE_NOT_FOUND
- Cause: Module resolution failed in build.
- Remedy: Reinstall deps; ensure Node 18/20. (
pnpm install)
-
NEXT_LINT_OR_TYPES_FAILED
- Cause: ESLint or TypeScript errors failed the build.
- Remedy: Fix lint/type errors; consider disabling lint in production builds if desired.
-
ENV_MISSING
- Cause: A required environment variable appears to be missing.
- Remedy: Use
opd env diffto compare local vs remote; thenopd env syncto apply.
-
PERMISSION_DENIED
- Cause: Permission denied during an operation.
- Remedy: Check file permissions and provider access.
-
NETWORK_ERROR
- Cause: Temporary network failure.
- Remedy: Retry. Check connectivity or provider status.
Notes
- Human mode prints concise messages with
Try:suggestions. - JSON/NDJSON include
code,message,remedy, and originalerrortext when available. - GitHub Actions annotations are emitted for doctor and env diff when running in CI.
- Run
opd doctor --jsonto see suggested commands based on linked state and monorepo cwd detection.