Skip to content
This repository has been archived by the owner on May 7, 2023. It is now read-only.

Bot closes #9

Open
DRoce opened this issue Jul 11, 2022 · 5 comments
Open

Bot closes #9

DRoce opened this issue Jul 11, 2022 · 5 comments

Comments

@DRoce
Copy link

DRoce commented Jul 11, 2022

node index.js

runs, whenever I try a command

it errors

throw err; // Rethrow non-MySQL errors
^

TypeError: Cannot read properties of undefined (reading 'length')
at Query. (/home/kali/the-scraper/index.js:475:20)
at Query. (/home/kali/the-scraper/node_modules/mysql/lib/Connection.js:526:10)
at Query._callback (/home/kali/the-scraper/node_modules/mysql/lib/Connection.js:488:16)
at Query.Sequence.end (/home/kali/the-scraper/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24)
at Query.ErrorPacket (/home/kali/the-scraper/node_modules/mysql/lib/protocol/sequences/Query.js:92:8)
at Protocol._parsePacket (/home/kali/the-scraper/node_modules/mysql/lib/protocol/Protocol.js:291:23)
at Parser._parsePacket (/home/kali/the-scraper/node_modules/mysql/lib/protocol/Parser.js:433:10)
at Parser.write (/home/kali/the-scraper/node_modules/mysql/lib/protocol/Parser.js:43:10)
at Protocol.write (/home/kali/the-scraper/node_modules/mysql/lib/protocol/Protocol.js:38:16)
at Socket. (/home/kali/the-scraper/node_modules/mysql/lib/Connection.js:88:28)

unknown (5)

@kogeki
Copy link
Collaborator

kogeki commented Jul 14, 2022

You probably have an issue with your MySQL configuration. Make sure you are using the updated setup.sql script.

@DRoce
Copy link
Author

DRoce commented Jul 28, 2022

I could not find the issue with my MySQL configuration, and I am using the updated setup.sql script.

@kogeki
Copy link
Collaborator

kogeki commented Jul 28, 2022

Does the bot say "Connected to database" after starting it?

@DRoce
Copy link
Author

DRoce commented Jul 28, 2022

Yep, it does.

@DRoce
Copy link
Author

DRoce commented Aug 11, 2022

i guess no fix ;c

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

No branches or pull requests

2 participants