⨯ Error: UNDEFINED_VALUE: Undefined values are not allowed

Hey, I don't get the reason for this issue. I don't have any undefined values anywhere. I don't know in which part of the code this occurs (schemas/functions/or something else), so if you know please let me know an dI'll provide a code snippet. Thank you ❤️
No description
5 Replies
Mykhailo
Mykhailo12mo ago
Hello, @imalfect! Usually this issue occurs when you pass undefined as parameter in your query. Could you provide code snippet for your queries?
imalfect
imalfectOP12mo ago
Hey there! I've added a console log to my function logging the parameters, and got this once. I think I forgot to skip the call if the user is undefined. Thank you for telling me what could be wrong, now the issue is solved!
No description
imalfect
imalfectOP12mo ago
Turns out it was a matter of moving the function call 4 lines above into the if condition lol
No description
Mykhailo
Mykhailo12mo ago
you are welcome! Happy that issue is solved!
imalfect
imalfectOP12mo ago
Thanks!
Want results from more Discord servers?
Add your server