Cumulocity API - Max retries per URL

I am seeing sometimes the following log related to max retries for URL, what is the default maximum? and is it possible to tune it?

Hi @bdm,

it would help if you could provide details regarding the software/agent that produced these logs (e.g. name and version).
It would also make it easier for others if you would copy the logs as text instead of taking screenshots from it.

Regards,
Tristan

Hello Tristan,

It is a python code doing API calls to cumulocity, It seems we are reaching some API rate limit, so I would like to know what is the current limit and is it possible to increase it?

HTTPSConnectionPool(host=‘xxx.emea.cumulocity.com’, port=443): Max retries exceeded with url: /inventory/managedObjects//6442467913 (Caused by SSLError(SSLEOFError(8, ‘[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1000)’)))
Error in POST/PUT to Cumulocity
HTTPSConnectionPool(host=‘xxx.emea.cumulocity.com’, port=443): Max retries exceeded with url: /event/events (Caused by SSLError(SSLEOFError(8, ‘[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1000)’)))

Did you google it? could be a client issue.

This sounds pretty much like SSL: UNEXPECTED_EOF_WHILE_READING · Issue #3360 · urllib3/urllib3 · GitHub

And sounds more like an issue with your code.

1 Like

This started after implementing multi-treading and I need multi-treading, so what is the solution??

It is very easy to google anything, but I need a trusted expert advise from the community, if you have any handful tip it will be great to share it

To be clear: This community is not meant to fix your custom solution issues. We are here to help and give pointers, but you need to fix them yourself.

If you need additional & “trusted expert advise” on generic things like multi-threaded microservice design, solution architecture, python client issues etc. I would ask you to approach Professional Services or get consultancy somewhere else.

2 Likes

By the way Stefan, you are not obliged to read and reply. Very rude and unprofessional approach! If not feeling like going to work today just take a vacation..