C
C#15mo 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
Hampus15mo ago
gamer50082
gamer5008215mo ago
Item not found? Oh internal error
Hampus
Hampus15mo 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
gamer5008215mo ago
Could be an issue with grabbing the thing
Hampus
Hampus15mo ago
ill set a breakpoint and see what the data contains
Hampus
Hampus15mo ago
Hampus
Hampus15mo 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
gamer5008215mo ago
Could be js issue
Hampus
Hampus15mo ago
found some info on the error
gamer50082
gamer5008215mo ago
cant help with that sorry
Hampus
Hampus15mo ago
no worries
gamer50082
gamer5008215mo ago
could be u not using the correct format yep formatting issue
Hampus
Hampus15mo ago
yeah I realized that haha hm
Accord
Accord15mo 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.