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

TypeError: Cannot read properties of undefined (reading 'endsWith') #51

Closed
AcedDown opened this issue Apr 2, 2022 · 3 comments
Closed
Labels

Comments

@AcedDown
Copy link

AcedDown commented Apr 2, 2022

Hello, I tried to use your repository as an attempt to modify it just for fun, But, When I tried to run it, I ran into some errors.

TypeError: Cannot read properties of undefined (reading 'endsWith')
at Object.<anonymous> (/home/runner/majoexe/web/web.js:5:35)

and another error in the same process

/home/runner/majoexe/node_modules/mysql/lib/protocol/Parser.js:437
     throw err; // Rethrow non-MySQL errors`
             ^
Error: Error: ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'JSON NULL, `leaves` JSON NULL, `last_updated` DATE NOT NULL, PRIMARY KEY (`guild' at line 1
    at Query.<anonymous> (/home/runner/majoexe/utilities/mysql/database.js:37:22)
   at Query.<anonymous> (/home/runner/majoexe/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home/runner/majoexe/node_modules/mysql/lib/Connection.js:488:16)
   at Query.Sequence.end (/home/runner/majoexe/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24)
@IgorKowalczyk
Copy link
Owner

  1. process.env.DOMAIN is undefined. it is possible that there is no .env file
  2. Your MySQL version is too old

@AcedDown
Copy link
Author

AcedDown commented Apr 2, 2022

By the way, is there anyway possible to get a free MySQL database, since I really can't find anything good as described.
And thanks.

@IgorKowalczyk
Copy link
Owner

Unfortunately I don't know any free mysql host. However, if you want MySQL (+ Bot hosting) at a very low price you can use https://terohost.com

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

No branches or pull requests

2 participants