kemai icon indicating copy to clipboard operation
kemai copied to clipboard

No Data Listed

Open kasper96 opened this issue 3 years ago • 8 comments

After Connecting successfully on setting tab and showing connected to kimai 1.15.5

no customers or projects is loaded

tried run as administrator same thing

Windows 10

kasper96 avatar Nov 02 '21 09:11 kasper96

data shown after fixing files permission on Ubuntu but now start not working only stop after starting from web working

kasper96 avatar Nov 02 '21 10:11 kasper96

Hello,

I use Kimai 1.18.1 and i wanted to try Kemai 0.6. The connection Wizard in Settings displays the right version... but all Pulldown-Menus are empty. It seems that they dont open.

But the connection ist correct and working, because if I start timetracking on the webpage a "Stop" button appears at the Desktop App.

Could you give me a hint what to do that it works correctly.

Thanks for your efforts in advance.

Schimaere0978 avatar Mar 07 '22 22:03 Schimaere0978

@Schimaere0978 Which OS ?

AlexandrePTJ avatar Mar 11 '22 08:03 AlexandrePTJ

Windows11 21H2 (Build 22000.556) up to date

Schimaere0978 avatar Mar 15 '22 07:03 Schimaere0978

@Schimaere0978 You should have a log file in %AppData%/Kemai/Kemai/ directory. Please look inside and paste here error logs.

AlexandrePTJ avatar Mar 15 '22 07:03 AlexandrePTJ

[2022-03-15 08:52:08.407] [kemai] [debug] ===> [GET] https://XXX.XXX.COM/api/users/me [2022-03-15 08:52:08.407] [kemai] [debug] ===> [GET] https://XXX.XXX.COM/api/version [2022-03-15 08:52:08.407] [kemai] [debug] ===> [GET] https://XXX.XXX.COM/api/config/timesheet [2022-03-15 08:52:08.407] [kemai] [debug] ===> [GET] https://XXX.XXX.COM/api/timesheets/active [2022-03-15 08:52:08.407] [kemai] [debug] ===> [GET] https://XXX.XXX.COM/api/tags [2022-03-15 08:52:09.323] [kemai] [debug] <=== {"version":"1.18.1","versionId":11801,"candidate":"stable","semver":"1.18.1-stable","name":"Ayumi","copyright":"Kimai 1.18.1 by Kevin Papst and contributors."} [2022-03-15 08:52:09.323] [kemai] [debug] ===> [GET] https://XXX.XXX.COM/api/plugins [2022-03-15 08:52:09.457] [kemai] [debug] <=== [] [2022-03-15 08:52:09.611] [kemai] [debug] <=== {"trackingMode":"default","defaultBeginTime":"now","activeEntriesHardLimit":3,"activeEntriesSoftLimit":3,"isAllowFutureTimes":true,"isAllowOverlapping":true} [2022-03-15 08:52:10.255] [kemai] [debug] <=== [] [2022-03-15 08:52:10.295] [kemai] [error] Client error: Error on request [users/me]: Error transferring https://XXX.XXX.COM/api/users/me - server replied: Internal Server Error {"code":500,"message":"Internal Server Error"} [2022-03-15 08:52:10.309] [kemai] [debug] <=== [] [2022-03-15 08:52:10.314] [kemai] [debug] ===> [GET] https://XXX.XXX.COM/api/customers [2022-03-15 08:52:10.780] [kemai] [error] Client error: Error on request [customers]: Error transferring https://XXX.XXX.COM/api/customers - server replied: Internal Server Error {"code":500,"message":"Internal Server Error"} [2022-03-15 08:52:14.538] [kemai] [debug] ===> [GET] https://XXX.XXX.COM/api/version [2022-03-15 08:52:15.070] [kemai] [debug] <=== {"version":"1.18.1","versionId":11801,"candidate":"stable","semver":"1.18.1-stable","name":"Ayumi","copyright":"Kimai 1.18.1 by Kevin Papst and contributors."} [2022-03-15 08:52:17.282] [kemai] [debug] ===> [GET] https://XXX.XXX.COM/api/users/me [2022-03-15 08:52:17.282] [kemai] [debug] ===> [GET] https://XXX.XXX.COM/api/version [2022-03-15 08:52:17.282] [kemai] [debug] ===> [GET] https://XXX.XXX.COM/api/config/timesheet [2022-03-15 08:52:17.283] [kemai] [debug] ===> [GET] https://XXX.XXX.COM/api/timesheets/active [2022-03-15 08:52:17.283] [kemai] [debug] ===> [GET] https://XXX.XXX.COM/api/tags [2022-03-15 08:52:18.202] [kemai] [debug] <=== [] [2022-03-15 08:52:18.209] [kemai] [debug] ===> [GET] https://XXX.XXX.COM/api/customers [2022-03-15 08:52:18.260] [kemai] [debug] <=== [] [2022-03-15 08:52:18.380] [kemai] [debug] <=== {"trackingMode":"default","defaultBeginTime":"now","activeEntriesHardLimit":3,"activeEntriesSoftLimit":3,"isAllowFutureTimes":true,"isAllowOverlapping":true} [2022-03-15 08:52:19.127] [kemai] [debug] <=== {"version":"1.18.1","versionId":11801,"candidate":"stable","semver":"1.18.1-stable","name":"Ayumi","copyright":"Kimai 1.18.1 by Kevin Papst and contributors."} [2022-03-15 08:52:19.127] [kemai] [debug] ===> [GET] https://XXX.XXX.COM/api/plugins [2022-03-15 08:52:19.179] [kemai] [error] Client error: Error on request [customers]: Error transferring https://XXX.XXX.COM/api/customers - server replied: Internal Server Error {"code":500,"message":"Internal Server Error"} [2022-03-15 08:52:19.192] [kemai] [error] Client error: Error on request [users/me]: Error transferring https://XXX.XXX.COM/api/users/me - server replied: Internal Server Error {"code":500,"message":"Internal Server Error"} [2022-03-15 08:52:19.584] [kemai] [debug] <=== [] [2022-03-15 08:52:20.827] [kemai] [debug] ===> [POST] https://XXX.XXX.COM/api/timesheets {"activity":0,"begin":"2022-03-15T08:52:20+01:00","description":"","project":0,"tags":""} [2022-03-15 08:52:21.602] [kemai] [error] Client error: Error on request [timesheets]: Error transferring https://XXX.XXX.COM/api/timesheets - server replied: Bad Request {"code":400,"message":"Validation Failed","errors":{"children":{"b

Schimaere0978 avatar Mar 15 '22 07:03 Schimaere0978

Thank you. There is a lot of "Internal Server Error". Did you check your kimai instance logs ?

AlexandrePTJ avatar Mar 15 '22 08:03 AlexandrePTJ

I cleared the log in the webinterface. After that I opened Kemai made some clicks... Here the results in the Serverlog:

[2022-03-15 08:24:28] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\UndefinedMethodError: "Attempted to call an undefined method named "getAttributes" of class "ReflectionClass"." at /var/www/kimai2/vendor/jms/serializer/src/Metadata/Driver/AttributeDriver/AttributeReader.php line 26 {"exception":"[object] (Symfony\Component\ErrorHandler\Error\UndefinedMethodError(code: 0): Attempted to call an undefined method named "getAttributes" of class "ReflectionClass". at /var/www/kimai2/vendor/jms/serializer/src/Metadata/Driver/AttributeDriver/AttributeReader.php:26)"} [] [2022-03-15 08:24:28] php.CRITICAL: Uncaught Error: Call to undefined method ReflectionClass::getAttributes() {"exception":"[object] (Error(code: 0): Call to undefined method ReflectionClass::getAttributes() at /var/www/kimai2/vendor/jms/serializer/src/Metadata/Driver/AttributeDriver/AttributeReader.php:26)"} [] [2022-03-15 08:24:27] security.INFO: Guard authentication successful! {"token":"[object] (Symfony\Component\Security\Guard\Token\PostAuthenticationGuardToken: PostAuthenticationGuardToken(user="USERNAME", authenticated=true, roles="ROLE_TEAMLEAD, ROLE_ADMIN, ROLE_SUPER_ADMIN, ROLE_USER"))","authenticator":"App\Security\TokenAuthenticator"} [] [2022-03-15 08:24:27] request.INFO: Matched route "get_customers". {"route":"get_customers","route_parameters":{"_route":"get_customers","_controller":"App\API\CustomerController::cgetAction","_format":"json"},"request_uri":"https://XXX.XXX.XOM/api/customers","method":"GET"} [] [2022-03-15 08:24:27] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\UndefinedMethodError: "Attempted to call an undefined method named "getAttributes" of class "ReflectionClass"." at /var/www/kimai2/vendor/jms/serializer/src/Metadata/Driver/AttributeDriver/AttributeReader.php line 26 {"exception":"[object] (Symfony\Component\ErrorHandler\Error\UndefinedMethodError(code: 0): Attempted to call an undefined method named "getAttributes" of class "ReflectionClass". at /var/www/kimai2/vendor/jms/serializer/src/Metadata/Driver/AttributeDriver/AttributeReader.php:26)"} [] [2022-03-15 08:24:27] php.CRITICAL: Uncaught Error: Call to undefined method ReflectionClass::getAttributes() {"exception":"[object] (Error(code: 0): Call to undefined method ReflectionClass::getAttributes() at /var/www/kimai2/vendor/jms/serializer/src/Metadata/Driver/AttributeDriver/AttributeReader.php:26)"} [] [2022-03-15 08:24:27] security.INFO: Guard authentication successful! {"token":"[object] (Symfony\Component\Security\Guard\Token\PostAuthenticationGuardToken: PostAuthenticationGuardToken(user="USERNAME", authenticated=true, roles="ROLE_TEAMLEAD, ROLE_ADMIN, ROLE_SUPER_ADMIN, ROLE_USER"))","authenticator":"App\Security\TokenAuthenticator"} [] [2022-03-15 08:24:27] request.INFO: Matched route "me_user". {"route":"me_user","route_parameters":{"_route":"me_user","_controller":"App\API\UserController::meAction","_format":"json"},"request_uri":"https://XXX.XXX.XOM/api/users/me","method":"GET"} []

Schimaere0978 avatar Mar 15 '22 08:03 Schimaere0978