TECHS-Technological-Solutions / ocpi

Python implementation of the Open Charge Point Interface (OCPI)
MIT License
49 stars 15 forks source link

Keyerror in endpoints [credentials module] #60

Open murali-shankar opened 4 months ago

murali-shankar commented 4 months ago

update_credentials method line 127 - [0] - to be removed because it is dict

File "/usr/local/lib/python3.10/dist-packages/py_ocpi/modules/credentials/v_2_2_1/api/cpo.py", line 127, in update_credentials endpoints = response_endpoints.json()['data'][0] KeyError: 0

VictorTechs commented 1 month ago

Hello @murali-shankar, sorry for the long response, could you tell me if this error occurs every time you're using this functionality?