trieb-work / strapi-neon-tech-db-branches

Strapi plugin to connect the neon.tech Postgres database using the neon API 💾
https://trieb.work/blog/article/neontech-serverless-postgres-db-strapi-auto-branching-plugin
MIT License
6 stars 2 forks source link

Plugin sometimes fails on new branch open #2

Closed JannikZed closed 1 month ago

JannikZed commented 1 year ago
Successfully created new neon.tech DB branch feature/ISSUE_23-breadcrumb
Error: Returned without connection Uri. Res:{
  "branch": {
    "id": "br-proud-violet-19346869",
    "project_id": "white-surf-59430019",
    "parent_id": "br-dark-wind-62103660",
    "parent_lsn": "F6/B014E0E0",
    "name": "feature/ISSUE_23-breadcrumb",
    "current_state": "init",
    "pending_state": "ready",
    "creation_source": "console",
    "primary": false,
    "cpu_used_sec": 0,
    "compute_time_seconds": 0,
    "active_time_seconds": 0,
    "written_data_bytes": 0,
    "data_transfer_bytes": 0,
    "created_at": "2023-11-20T11:49:36Z",
    "updated_at": "2023-11-20T11:49:36Z"
  },

We should just add a one second sleep after branch creation to give neon a bit more time to setup the branch