Skip to content

Unclear error message when redeploying an existing deployment #218

Description

@vikram-2101

When redeploying an already existing deployment using metacall-deploy, the CLI returns a generic HTTP error message that does not explain the real problem.

Steps to reproduce

  1. Deploy an application:
    node dist/index.js --dev --workdir path-to-app
  2. Run the same command again:
    node dist/index.js --dev --workdir path-to-app

Current behavior

The CLI outputs: Error: Request failed with status code 400

This message does not indicate the actual cause of the error.

Actual reason

The deployment already exists.

Expected behavior

The CLI should return a more descriptive error message, for example:
Deployment "test-app" already exists. Use --force to redeploy or --delete to remove it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions