API route for granting XP is broken
Resolved
Philipp👨💻OPMar 26, 2025, 2:32 PMUnfortunately 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.


ShadowMar 26, 2025, 6:55 PMSolutionHey @Philipp👨💻 This is working correctly in my testing, but it might be with how v1 is depreciated. api.kiai.app/v1 is a redirect to api-v1.kiai.app/v1 so it might just not be following that redirect properly.
- ShadowHey <@282193909566668800> 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👨💻Mar 27, 2025, 5:11 PMThank 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."}
ShadowMar 27, 2025, 5:12 PMAha that makes then unfortunately, with v1 development being stopped and not updated alongside the bot
- ShadowAha that makes then unfortunately, with v1 development being stopped and not updated alongside the bot
Philipp👨💻Mar 27, 2025, 5:14 PMSo is there anything I can do about this currently? 🤔
ShadowMar 27, 2025, 5:14 PMUpdate to the v2 API
ShadowMar 27, 2025, 5:14 PM
Philipp👨💻Mar 27, 2025, 5:15 PMAh thank you, I've missed that. Will check it out 👍