Prisma1: `prisma introspect` throws Project not found

Created on 20 Dec 2018  Â·  11Comments  Â·  Source: prisma/prisma1

When running the prisma introspect command, I am always getting this error: ERROR: Project not found: 'default_default'

Here's what I did:

  1. Kill and remove all Docker containers
  2. Create new Docker Compose file:
    yml version: '3' services: prisma: image: prismagraphql/prisma:1.23 restart: always ports: - "4466:4466" environment: PRISMA_CONFIG: | port: 4466 databases: default: connector: mongo uri: mongodb+srv://Admin:[email protected]/test?retryWrites=true database: testdb
  3. Run docker-compose up -d
  4. Create prisma.yml and add endpoint: http://localhost:4466 to it
  5. Run:
    prisma introspect \ --mongo-uri "mongodb+srv://Admin:[email protected]/test?retryWrites=true" \ --mongo-db testdb

The CLI now throws this error:

$ prisma introspect \
                    --mongo-uri "mongodb+srv://Admin:[email protected]/test?retryWrites=true" \
                    --mongo-db testdb

ERROR: Project not found: 'default_default'

{
  "errors": [
    {
      "message": "Project not found: 'default_default'",
      "code": 3016,
      "requestId": "local:cjpwohq5b00000939vm45rf67"
    }
  ],
  "status": 200
}

Get in touch if you need help: https://www.prisma.io/forum/
To get more detailed output, run $ set -x DEBUG "*"

Removing the endpoint from prisma.yml and rerunning the same command leads to this error:

$ prisma introspect \
                    --mongo-uri "mongodb+srv://Admin:[email protected]/test?retryWrites=true" \
                    --mongo-db testdb
 â–¸    Cannot read property 'custom' of null

Get in touch if you need help: https://www.prisma.io/forum/
To get more detailed output, run $ set -x DEBUG "*"
bu2-confirmed arecli areconnectomongo

Most helpful comment

@timsuchanek, I know this issue is closed, but I thought I would chime in and say that the 1.24.0-beta.7 fixed the exact same issue that I was having with a PostgreSQL DB. Thanks!

All 11 comments

It is not limited to MongoDB. A person reported that he was unable to follow along with the existing database flow in the docs and encountered this same error. https://www.prisma.io/forum/t/im-following-the-tutorial-on-mac-for-existing-database-prisma-introspect-does-not-work/5428/2

I was also able to reproduce the same:

image

@pantharshit00 this doesn't look Go related to me, i.e. not my jurisdiction.

Sorry, @dominikh. I accidentally tagged you in this issue while I meant to tag you on #3745

I'm having this exact problem with mongo. It previously was working (1.22) with Postgres.

Thanks a lot for reporting! We just published a fix on beta, please try out [email protected]

With [email protected]
I get:

Enter name of existing database heavy_job
Error: Could not connect to database. database name must be a string

Looks like the underscore is breaking it.

Thanks so much @timsuchanek, it now worked for me with the latest beta 🙌

@kjkurtz Try to provide the DB names with quotes, e.g. "heavy_job". If it's still failing, please open another issue for your bug.

@timsuchanek, I know this issue is closed, but I thought I would chime in and say that the 1.24.0-beta.7 fixed the exact same issue that I was having with a PostgreSQL DB. Thanks!

Chiming in here, do you think it has to do with using database default@default when the config file explicitly states database: testdb?

I think I'm experiencing this issue with version 1.26 in docker (tag prismagraphql/prisma:1.26).

I got this fixed by wrapping the name of the database on docker-compose.yml on double quotes " "

I am facing same issue again with
Prisma CLI version: prisma/1.34.10 (darwin-x64) node-v13.7.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dohomi picture dohomi  Â·  3Comments

jannone picture jannone  Â·  3Comments

nikolasburk picture nikolasburk  Â·  3Comments

marktani picture marktani  Â·  3Comments

marktani picture marktani  Â·  3Comments