Closed jsbrain closed 9 months ago
Ok I actually changed the username in the db to remove the space. Still the same error, even for 'today' date range. So I guess the bug is caused by something else ...
Thanks for reporting this! I think spaces in usernames are generally a bad idea, I'll probably disallow to have them.
Your error message, however, seems to relate to a permissions issue. Make sure your "Settings -> Permissions" settings allow to request the respective {range}
.
Yeah I literally just realized that, after checking the differences between users in the database. Probably missed that setting after some update.
Classic operator error, sorry for the confusion :D
Wait, how were you able to create a user with a name containing a white space? There is a check in place (since Feb '23) to prevent this :thinking:.
@muety I'm running wakapi since the very early days 😀
Amazing project, thanks a ton!
Describe the bug In case the username has a space (e.g. 'Bob Jones'), a request to
/compat/wakatime/v1/users/{user}/stats/{range}
won't work. Other api endpoints do work, not sure if the bug only exists on this route or on others as well.System information Please provide information on: