captain-definition file is not a valid JSON!

Open
#134 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
node.js, typescript
Domain
cli

Research direction

Start by extracting captain-definition.zip and reproducing the failure with caprover deploy on the reported Windows, Node v18.14.0, and CLI 2.2.3 setup. Trace how the CLI reads and parses the captain-definition file, then confirm the cause with a focused test or reproduction and document a successful deployment or a precise validation error.

Written by the indexing model from the issue text.

Description

What is the problem?
When trying to deploy app via CLI, no matter all the format fixes we try, caprover cli keeps saying the definition file is not a valid Json

Steps to reproduce the problem:
Just try to run the command over the attached file on zip

caprover deploy

Windows 11
Caprover Cli Version 2.2.3
Node Version v18.14.0

Output of the following command on your server:
image
captain-definition.zip

Dominant language
TypeScript
Stars
78
Forks
43
PR merge metrics
No merged PRs in 30d

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from caprover/caprover-cli

All issues in caprover/caprover-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.