Yagodi
Yagodi
PPrisma
Created by Yagodi on 4/10/2025 in #help-and-questions
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)
7 replies