Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 500: Internal Server Error, when use overtime endpoint #23

Closed
vitormattos opened this issue Dec 6, 2023 · 2 comments
Closed

Error 500: Internal Server Error, when use overtime endpoint #23

vitormattos opened this issue Dec 6, 2023 · 2 comments

Comments

@vitormattos
Copy link

vitormattos commented Dec 6, 2023

The overtime also has some issues. I am still struggeling with the API. Does these work in your environment? You can to click your profile -> API access and then click the book icon "swagger api doc". When you have defined an api key, on the swagger api you can test it by authorization (use your username and api passoword) and then go to the api endpoint to test.

The swagger API doc does not open for me "{"code":500,"message":"Internal Server Error"}" - when I remove all approval APIs (rename .php to .php_ for example), then the doc is up and running.

Nevertheless, I already merge so that can be used as base.

Originally posted by @KatjaGlassConsulting in #22 (comment)

@vitormattos
Copy link
Author

Hi @KatjaGlassConsulting I didn't tested this.
I'm working to finish a very big release of LibreSign and I wish to create a new release next week. I will check this point as a possible.

Only to explain about my environment because maybe would possible provide insights to your developer environment.

I run Kimai in a container using this project that I created based in official docker image of Kimai:
https://github.com/LibreCodeCoop/kimai-docker

When you look the answer of API endpoint with APP_ENV=dev enabled, will be possible look the backtrace. I commonly look the error message and the backtrace to put a breakpoint

When you put a breakpoint in your IDE, and start to listening the xdebug, will be possible look the context of error.

Returning about the error that you reported, I wish to return helping your project at next week

@KatjaGlassConsulting
Copy link
Owner

The issue was the usage of "Request", I changed to ParamFetcherInterface instead of Request and now it's working. For this I closed the #21 issue. It's in the kimai_v2_update branch already. I have to admit I didn't do much php debugging so far and are more using the file_put_contents.

Thanks and I will close this issue now. The kimai v2 migration is still open as there are some other issues available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants