C
C#2y ago
Hampus

✅ 500 error when searching for something that exists in the database

when I search for something that exists in my database, i get the 500 error. but when i just write random things, i dont get any errors at all. im doing a console log on the output from the database
15 Replies
Hampus
HampusOP2y ago
gamer50082
gamer500822y ago
Item not found? Oh internal error
Hampus
HampusOP2y ago
the [] is the empty search result because there's no matches. nothing comes up when I search for something that exists, not even the [] I think that it can find the item in the database since I see a difference when i search for something that exists compared to something that doesnt exist. when i search for something that doesnt exist, i dont get any errors, and it logs the empty result which is []
gamer50082
gamer500822y ago
Could be an issue with grabbing the thing
Hampus
HampusOP2y ago
ill set a breakpoint and see what the data contains
Hampus
HampusOP2y ago
Hampus
HampusOP2y ago
it seems to get the data this is before its being sent to JS do you know what the issue could be? it seems to have gotten the data at least before sending it off to JS@BITS_gamer50082
gamer50082
gamer500822y ago
Could be js issue
Hampus
HampusOP2y ago
found some info on the error
gamer50082
gamer500822y ago
cant help with that sorry
Hampus
HampusOP2y ago
no worries
gamer50082
gamer500822y ago
could be u not using the correct format yep formatting issue
Hampus
HampusOP2y ago
yeah I realized that haha hm
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server