Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting repo to DeployHQ ends up in Unprocessable Entity sometimes #33

Open
ecairol opened this issue May 2, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@ecairol
Copy link
Contributor

ecairol commented May 2, 2024

Running the command team51 deployhq:create-project ends in an error:

Running in developer mode. Skipping update check.
Please enter the name of the project to create: test1
Please select the zone to create the project in [North America (East)]: 
  [3] Europe (UK)
  [6] North America (East)
  [9] North America (West)
 > 9
Would you like to connect the project to a GitHub repository? [y/N] y
Please enter the slug of the GitHub repository to connect the project to: test1
Are you sure you want to create the DeployHQ project `test1` in North America (West)? [y/N] y
Creating DeployHQ project `test1` in North America (West).
Project `test1` created successfully. Permalink: test1
Are you sure you want to connect the DeployHQ project `test1` (permalink test1) to the GitHub repository `a8cteam51/test1`? [y/N] y
Connecting the DeployHQ project `test1` (permalink test1) to the GitHub repository `a8cteam51/test1`.
❌ API error (500 https://opsoasis.wpspecialprojects.com/wp-json/wpcomsp/deployhq/v1/projects/test1/repository): {"code":422,"message":"Unprocessable Entity","data":null}
Failed to connect the project to the repository.

On DeployHQ the project was created ok, however, the GitHub repository was not connected.

@ecairol
Copy link
Contributor Author

ecairol commented May 2, 2024

Here's more information on how to reproduce this issue:

  1. Use team51 github:create-repository to create a new repository. Leave the options empty
  2. The CLI will ask you for a name, enter one.
  3. When the CLI ask you for the type, leave that empty
  4. Once the repository is created, try to link it to a DeployHQ project, either creating a new project with deployhq:create-project, or using deployhq:connect-project-repository
  5. The CLI will fail to connect the Project to the Repository
  6. If you create the repository using the parameters, the connection will not fail. (eg: team51 github:create-repository my-test-repo --description="Just testing" --type=plugin

@ecairol ecairol changed the title team51 deployhq:create-project ends in error Connecting repo to DeployHQ ends up in Unprocessable Entity sometimes May 2, 2024
@ecairol ecairol added the bug Something isn't working label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant