mongodbnext.jsprisma

SCRAM failure: bad auth : authentication failed


I am having this issue on local development:

Error occurred during query execution:
ConnectorError(ConnectorError { user_facing_error: None, kind: AuthenticationFailed { user: "SCRAM failure: bad auth : authentication failed" }, transient: false })
    at async Page (./app/dashboard/[...folder]/page.tsx:49:16)
digest: "1029893487"
 ⨯ PrismaClientUnknownRequestError:
Invalid `prisma.cafe.findUnique()` invocation:

this error has been appeared after deploying to vercel. Problem with local development but everything is as expected on deployment.


Solution

  • Thanks Tyler for your answer the error was from local env file I found that I didn't updated my mongo url from .env.local