Skip to content

Unable to deploy a project with the new environment variables system - Internal Server Error 500 #602

@Velka-DEV

Description

@Velka-DEV

Describe the bug

Deploying a new NuxtHub project fails with a 500 Internal Server Error when more than five environment variables are configured during the project creation process.
After extensive testing, we have isolated the issue to the number of environment variables being sent to the NuxtHub API. The deployment process consistently fails when six or more variables are included. Conversely, projects created with five or fewer environment variables deploy successfully without any errors. This suggests a potential limitation or bug in how the creation endpoint processes the environment variable payload.

EDIT: Creating environment variables five by five is working workaround

Steps to reproduce

Navigate to the NuxtHub dashboard and click "New Project".
Connect to a Git repository containing a Nuxt application.
In the "Environment Variables" configuration section, add six or more key-value pairs.

Finalize the project configuration and initiate the deployment.
Observe the deployment logs. The process will fail, and inspecting the network request to the NuxtHub API will show a 500 Internal Server Error response.

Expected behavior

The project should be created and deployed successfully, regardless of the number of environment variables provided during the initial setup.

Environment

NuxtHub CLI version: 0.9.0
Nuxt version: 3.17.5
Deployment Method: NuxtHub Dashboard

Metadata

Metadata

Assignees

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