kemai icon indicating copy to clipboard operation
kemai copied to clipboard

Time not listet # Method not allowed

Open asaglam76 opened this issue 2 years ago • 4 comments

Hello Alexandre, I'm trying to run the desktop client. The access is successfull, but the counter is not working. I checked the log file and it seems, there is something wrong .. the cut of log below.

{"code":405,"message":"Method Not Allowed"} [2022-09-10 10:38:35.957] [kemai] [debug] ===> [PATCH] http://fqdn/api/timesheets/0/stop [2022-09-10 10:38:36.010] [kemai] [error] Client error: Error on request [timesheets]: Error transferring https://fqdn/api/timesheets/0/stop - server replied: Method Not Allowed {"code":405,"message":"Method Not Allowed"} [2022-09-10 10:38:40.919] [kemai] [debug] ===> [PATCH] http://fqdn/api/timesheets/0/stop [2022-09-10 10:38:40.975] [kemai] [error] Client error: Error on request [timesheets]: Error transferring https://fqdn/api/timesheets/0/stop - server replied: Method Not Allowed

grafik

I'm not sure about one thing. Is the plugin "Task planning" mandatory for the desktop client. If yes, then I have to test ist with the plugin, if not .. what can be the cause.

asaglam76 avatar Sep 10 '22 09:09 asaglam76

Hi @asaglam76,

"Task planning" is not mandatory. Kemai just check if it is enabled in kimai instance, then add another panel if needed.

For your problem, you have to ensure that the user you are using with your connection has the permission "edit_activity".

AlexandrePTJ avatar Sep 12 '22 06:09 AlexandrePTJ

Hi Alexandre .. think we're misunderstanding. I think the "Task Planning" need to be installed .. regardless of whether it is used or not, which means that it is installed and active. Without this plug-in, Kemai does not seem to work. I have also tried it with the admin user, same result. It is unfortunately a bit unfortunate that you cannot get the plugins as test versions.

asaglam76 avatar Sep 12 '22 20:09 asaglam76

Which version of kimai do you connect to ?

AlexandrePTJ avatar Sep 14 '22 18:09 AlexandrePTJ

1.24 (the newest version) .. it is actually in test. I tried a lot of things, bought task planning ... it is not working :(

asaglam76 avatar Sep 14 '22 19:09 asaglam76

it doesn't work for me either. tried with kimai version 1.29.1 (self hosted and cloud). tried to use master branch, but no luck.

what i see in logs on my host:

[2022-12-18 23:34:16] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException: "No route found for "GET /api/timesheets/0/stop": Method Not Allowed (Allow: PATCH)" at /data/app/kimai/vendor/symfony/http-kernel/EventListener/RouterListener.php line 140 {"exception":"[object] (Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException(code: 0): No route found for "GET /api/timesheets/0/stop": Method Not Allowed (Allow: PATCH) at /data/app/kimai/vendor/symfony/http-kernel/EventListener/RouterListener.php:140, Symfony\Component\Routing\Exception\MethodNotAllowedException(code: 0): at /data/app/kimai/vendor/symfony/routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:42)"} []

livelace avatar Dec 18 '22 23:12 livelace

This API method is not used anymore. Should be fixed since version 0.8.0.

AlexandrePTJ avatar Jul 16 '23 21:07 AlexandrePTJ