The error you got most likely means that the Prisma query engine timed out before the Neon compute was activated. You can adjust your Neon connection string by adding a connect_timeout parameter that defines the maximum number of seconds to wait for a new connection to be opened. The default value is 5 seconds. A higher setting should provide the time required to avoid connection timeout issues. For example:
When you go to the “Databases” page from the sidebar, do you have a database called ShadowDB? Perhaps you either don’t have one or it has a different name
Each branch has its own compute endpoint and databases. If you create a branch and then create a database for the new branch, the parent branch won’t have that database
Thank you.
For the shadow_database should I create a branch in the main_database?
What I did is to create two databases. I guess this is wrong.
Even with the same IDs I get the following error:
Error: db error: ERROR: database “prisma_migrate_shadow_db_8aa4eddb-6161-481b-ac7a-20cc3e1dd4d2” is being accessed by other users
DETAIL: There are 2 other sessions using the database.
0: schema_core::state::DevDiagnostic
at schema-engine/core/src/state.rs:266
@Mahmoud - My env variable for directURL was not specified, as I had been referencing an OS schema.prisma file. I see directURL was in my new prisma file on my dashboard.
Currently, you can’t connect from edge environments to Neon while using Prisma. If you want to keep using Prisma you can either switch to a regular lambda function or set up the Prisma Data Proxy https://cloud.prisma.io/