The runtime environment is not correctly configured. One or more required environment variables are missing or invalid.
Common causes
- Missing environment variables - An environment variable referenced in the project code or configuration is not set in the current environment.
- Wrong environment - The request is hitting an environment (such as staging or preview) where the required variables have not been configured.
- Deleted or renamed variables - An environment variable was recently deleted or renamed, but the code still references the old name.
How to check environment variables
- Open the Zuplo portal and navigate to the project settings.
- Review the environment variables for the target environment and verify all required variables are present.
- Check the runtime logs for specific messages about which variable is missing.
- Compare the environment variables across environments to find discrepancies.
Environment variables are scoped to each environment. A variable set in production may not exist in staging or preview environments. Verify that all required variables are configured in every environment where the project is deployed.
How to fix
- Identify the missing variable from the error logs.
- Add the variable in the Zuplo portal under the project's environment variable settings.
- Redeploy the project after adding the variable.
Related resources
Last modified on