API route for granting XP is broken

Unfortunately for quite a while already I'm unable to give users XP via the API. This neither works in my own code nor the API docs playground. Screenshots attached.
No description
No description
7 Replies
EasyThreads
EasyThreads2w ago
Hey @Philipp👨💻! Our team will answer your post soon. If this is an issue in your server, make sure you've included your server's ID (This can be found on the /ping command), as well as which users are having this issue. Once your question has been answered, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution to help others find the solution via Answer Overflow
Shadow
Shadow2w ago
Hey @Philipp👨💻 This is working correctly in my testing, but it might be with how v1 is depreciated. https://api.kiai.app/v1 is a redirect to https://api-v1.kiai.app/v1 so it might just not be following that redirect properly.
Philipp👨💻
Philipp👨💻OP2w ago
Thank you, the issue still persists however. After some more debugging here's the specific error response I get on my backend:
{"statusCode":500,"code":"P2021","error":"Internal Server Error","message":"\nInvalid `prisma.userGuildData.upsert()` invocation:\n\n\nThe table `public.TimeXp` does not exist in the current database."}
{"statusCode":500,"code":"P2021","error":"Internal Server Error","message":"\nInvalid `prisma.userGuildData.upsert()` invocation:\n\n\nThe table `public.TimeXp` does not exist in the current database."}
Shadow
Shadow2w ago
Aha that makes then unfortunately, with v1 development being stopped and not updated alongside the bot
Philipp👨💻
Philipp👨💻OP2w ago
So is there anything I can do about this currently? 🤔
Philipp👨💻
Philipp👨💻OP2w ago
Ah thank you, I've missed that. Will check it out 👍

Did you find this page helpful?