jeremydaly / serverless-mysql

A module for managing MySQL connections at SERVERLESS scale
MIT License
1.21k stars 83 forks source link

TypeError: Cannot read properties of undefined (reading 'slice') #155

Closed LamaAgent closed 7 months ago

LamaAgent commented 9 months ago

Hi, I get this error when I use serverless-mysql together with nextjs:

TypeError: Cannot read properties of undefined (Lesen von 'slice')
    at Object.connect (webpack-intern:///(middleware)/./node_modules/serverless-mysql/index.js:97:23)
    at async isSessionValid (webpack-intern:///(middleware)/./src/app/lib/db.ts:107:5)
    bei async isAuthenticated (webpack-intern:///(middleware)/./src/app/lib/actions.ts:108:10)
LamaAgent commented 9 months ago

That was actually my mistake because my credentials were invalid. However, a clearer error message would be nice.

LamaAgent commented 9 months ago

Nvm, it still ain't working

naorpeled commented 8 months ago

Hey @LamaAgent, could you please specify how do you initialize serverless-mysql?

naorpeled commented 7 months ago

Closing this issue for now as it is stale. @LamaAgent feel free to ping me if you need anything.