Discussions

Ask a Question
Back to All

API get of employee Information fails

We are trying to get information of our employees and the API sends back an error 404, despite the employee being existent in the system. Here is an example of the answer to our request:

fail: MVC_Personio_Page.Personio.PersonioAccess[0]
Flurl.Http.FlurlHttpException: Call failed with status code 404 (Not Found): GET https://api.personio.de/v1/company/employees?email=koliveira%40buhl-data.com
at Flurl.Http.FlurlRequest.HandleExceptionAsync(FlurlCall call, Exception ex, CancellationToken token)
at Flurl.Http.FlurlRequest.SendAsync(HttpMethod verb, HttpContent content, CancellationToken cancellationToken, HttpCompletionOption completionOption)
at Flurl.Http.FlurlRequest.SendAsync(HttpMethod verb, HttpContent content, CancellationToken cancellationToken, HttpCompletionOption completionOption)
at Flurl.Http.ResponseExtensions.ReceiveJson[T](Task`1 response)
at MVC_Personio_Page.Personio.PersonioAccess.MVC_Personio_Page.Personio.Interface.IPersonioAccess.GetEmployee(String mail) in /home/tfsbuild-ip/BuildAgents/Agent1/_work/1/s/src/MVC Personio Page/Personio/PersonioAccess.cs:line 207
{"success":false,"error":{"message":"Employee [[email protected]] not found","code":0}}
warn: MVC_Personio_Page.Business.PersonioManager[0]
GetEmployee with address '[email protected]' from Personio failed.
fail: MVC_Personio_Page.Controllers.HomeController[0]
Fehler bei der Abfrage des Users '[email protected]' in Personio.