Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read properties of undefined #6052

Open
tsm2107 opened this issue Apr 3, 2024 · 2 comments
Open

Cannot read properties of undefined #6052

tsm2107 opened this issue Apr 3, 2024 · 2 comments

Comments

@tsm2107
Copy link

tsm2107 commented Apr 3, 2024

Environment

Database: MySQL
OS: Windows
Node.js v20.12.1

Bug

TypeError: Cannot read properties of undefined

When an application loses its connection to the database, the application crashes with the error
TypeError: Cannot read properties of undefined (reading '__knexUid')

#Fix
\knex\lib\client.js:344:58 connection.__knexUid to connection?.__knexUid

@rluvaton
Copy link
Member

rluvaton commented Apr 4, 2024

Please provide reproductive repo

@nicholaswmin
Copy link

nicholaswmin commented Apr 24, 2024

Just got the same in our production env.

Please provide reproductive repo

That's impossible from my end; ours happens under extremely high loads before it crashes and it's a database with 500GB of RAM. Yes, RAM.

I can't replicate that kind of load even if I tried.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants