Discussions
Problems with employees endpoint
Hi,
I am trying to get data from employees API (https://api.personio.de/v1/company/employees)but I always got this error {'message': 'Etwas ist schiefgelaufen β¦', 'code': 0, 'identifier': 'b808da40bed54c6f84ffc194284d0d9b'}
Hello Rama,
Could you let us know what steps you are using to authenticate your request with the GET Employees endpoint? I.e. could you send a step-by-step breakdown of how you are trying to retrieve Employee data from the GET endpoint? Also, could you tell us if you are using cURL/Postman to send these requests?
Thank you for using Personio APIs.
Amrit
Hi Amrit,
I am using https://api.personio.de/v1/auth endpoint for authentication. Then I used the token to retrieve data from GET Employees endpoint. All of this is running with python client.
Hey Rama,
Thank you for confirming. I just checked the same flow using the "Try It!" functionality on the API Reference page using my test account and I can confirm that the Auth token to GET Employees flow is working as intended.
This leads me to believe that this is an issue that is specific to your integration. Would you mind trying the Auth to GET Employees flow (using your credentials) on the API Reference page using the "Try It" functionality to see if my hypothesis is correct?
Thank you for using Personio APIs.
Amrit
but what is this 'message': 'Etwas ist schiefgelaufen β¦', 'code': 0
error exactly mean?
Hey Rama,
This error most likely stands for a timeout from our underlying service. Can I ask if you are implementing pagination parameters i.e. limit/offset in your GET calls? If not, using those params should solve this issue for you.
Thank you for using Personio APIs.
Amrit
Hello Rama,
Just checking in to see if pagination implementation fixed this issue for you?
Thank you for using Personio APIs.
Amrit
Hello Rama,
We will go ahead and mark this thread as Answered, if there is no further response in a couple of hours time. Feel free to open a new thread if you have any further questions/clarifications.
Thank you for using Personio APIs.
Amrit
ο»Ώ