How to prevent the following error: TypeError: Cannot read properties of undefined (reading 'constructor') #1700
-
Hello, could you please assist me. I don't know what caused this error and how I can prevent it from happening again. I'm using mysql 2 in my telegraf bot to perform CRUD operations. One unregistered user bypassed the system. I'm not sure if it's because the SQL statement did not run in this instance becuase The login process:
The unregistered user was able to use the bot until they encountered an error when the bot tried to insert data in another table and the UserID was null. **The terminal displayed the following error: ** Where the error took place:
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
looks like the sql passed to |
Beta Was this translation helpful? Give feedback.
looks like the sql passed to
.query()
is undefined ( we expect a string here ). Can yuu double check how this could happen? ( uninitialised variable etc )