Closed GordianDziwis closed 2 years ago
I can't reproduce this. Error 400 means, something is malformed in the request to kimai.
How did you installed kimai2-cmd?
If you installed it with npm you can change t manually. In this line:
https://github.com/infeeeee/kimai2-cmd/blob/ca8c54da0004f5b367712b64b1472696d69fca36/kimai2-cmd.js#L77
add .body
behind options, so it should look like this:
debug("request options: " + options.body)
If you installed a prebuilt, I just created a new build with this extra debugging: https://github.com/infeeeee/kimai2-cmd/releases/tag/1.3.1
Post the output of the same command with this new version
This helped, the issue is that all my activities have the same name Work
. Kimai2-cmd queries by name for the activity id and if there exists multiple activities with the same name, it just uses the first one. Which could belong to another project.
You can use global activities instead: https://www.kimai.org/documentation/activity.html#global-activities They are working perfectly in kimai2-cmd.
I don't know how I could solve this client side.
This helps, thanks!
Results in