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

create-app should not allowing for the creation of new projects if the project quota has been reached #255

Open
davidgomes opened this issue Jul 20, 2024 · 1 comment
Assignees
Labels
create-app enhancement New feature or request

Comments

@davidgomes
Copy link
Collaborator

No description provided.

@davidgomes davidgomes added the enhancement New feature or request label Jul 20, 2024
@davidgomes davidgomes self-assigned this Jul 20, 2024
@mrl5
Copy link
Contributor

mrl5 commented Aug 23, 2024

I was able to reproduce with neonctl bootstrap (which seams to be an alias) .

When option Create a new Neon project is chosen in What Neon project would you like to use? step. For the context this how it looks currently:

<REDACTED>
✔ What Neon project would you like to use? › Create a new Neon project
ERROR: An error occurred while creating a new Neon project: AxiosError: Request failed with status code 422

which under the hood comes from

curl -i --request POST \
    --url https://console.neon.tech/api/v2/projects \
    --header "Authorization: Bearer $token" \
    --header 'accept: application/json' \
    --header 'content-type: application/json' \
    --data '
{
  "project": {
    "pg_version": 16,
    "name": "myproject"
  }
}
'
HTTP/2 422

{"code":"PROJECTS_LIMIT_EXCEEDED","message":"user projects limit of 1 exceeded, got 1"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
create-app enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants