question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

photon with preview-5 DriverError

See original GitHub issue

prisma2@2.0.0-preview-5:

{
  "errors": [
    {
      "message": "Error querying the database: DriverError { Could not connect: address not specified } date=2019-08-05T10:14:50.903Z",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "path": [
        "findOneProfile"
      ],
      "extensions": {
        "code": "INTERNAL_SERVER_ERROR",
        "exception": {
          "stacktrace": [
            "Error: Error querying the database: DriverError { Could not connect: address not specified } date=2019-08-05T10:14:50.903Z",
            "    at NodeEngine.engineReady (/Users/DC-BT/Documents/Projects/necom/server/node_modules/@generated/photon/runtime/index.js:13091:23)",
            "    at /Users/DC-BT/Documents/Projects/necom/server/node_modules/@generated/photon/runtime/index.js:13014:21"
          ]
        }
      }
    }
  ],
  "data": {
    "findOneProfile": null
  }
}

if I downgrade to prisma2@2.0.0-preview-3 photon works normal

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
timsuchanekcommented, Aug 8, 2019

Fixed in latest alpha.

1reaction
divyenduzcommented, Aug 8, 2019

To summarize:

This breaks

datasource db {
  provider = "mysql"
  // url      = "file:./dev.db"
  url      = "mysql://root:@localhost:3306/necom"
  default  = true
}

And this works

datasource db {
  provider = "mysql"
  url      = "mysql://root:@localhost:3306/necom"
  default  = true
}

I ran generate after changing the schema file. The same behavior can be observed in Postgres.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Untitled
... Surface 4 type cover driver error, Jimexs inc quebec, Brevstemme aarhus ... Itcot consultancy and services ltd, Check net usage tata photon...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found