P
Prismaโ€ข2w ago
Yagodi

Sudden connection string issues

Hi, I have been working the the ORM for a while now and for seemingly no reason I recently encountered issues with my instance. When sending any request this error is thrown:
[Error: No database host or connection string was set, and key parameters have default values (host: localhost, user: mac, db: mac, password: null). Is an environment variable missing? Alternatively, if you intended to connect with these parameters, please set the host to 'localhost' explicitly.] {
clientVersion: '6.6.0'
}
[Error: No database host or connection string was set, and key parameters have default values (host: localhost, user: mac, db: mac, password: null). Is an environment variable missing? Alternatively, if you intended to connect with these parameters, please set the host to 'localhost' explicitly.] {
clientVersion: '6.6.0'
}
I am 100% sure the connection string is set correctly in my envs (I printed it to confirm). It is accessible through the Prisma CLI (db push etc works as expected), and I do access it correctly when creating the singleton instance. I have no clue what could be causing this issue. My database is up and since yesterday absolutely nothing changed in my connection string so I really don't know... Any help would be greatly appreciated ๐Ÿ˜„ (Prisma 6.6.0)
5 Replies
Prisma AI Help
Prisma AI Helpโ€ข2w ago
You decided to hold for human wisdom. We'll chime in soon! Meanwhile, #ask-ai is there if you need a quick second opinion.
Nurul
Nurulโ€ข2w ago
Hey @Yagodi ๐Ÿ‘‹ Can you do a quick check and see if you get the same error in Prisma version 6.5.0 as well? I want to confirm if this issue is caused by the recent Prisma 6.6.0 release
Yagodi
YagodiOPโ€ข2w ago
Yup I downgraded to 6.5.0 and the problem vanished
Nurul
Nurulโ€ข2w ago
Thanks for checking. So it indeed looks like this is related to version 6.6.0 Do you mind creating a GitHub Issue, so that I can share it with ORM team? https://github.com/prisma/prisma/issues
GitHub
Issues ยท prisma/prisma
Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB - Issues ยท prisma/prisma
Yagodi
YagodiOPโ€ข2w ago
Sure, I'll do it in my free time ๐Ÿ™‚

Did you find this page helpful?