One of our customers, Capital Float (Axio) faced a frequent API Failures, response at their end that says ‘Connection Aborted’ and we did not have any logs at our end for these API calls.
The error messages are as follows:
- [2023-06-24 11:15:56,438] [6622-140289528641280] INFO – Initiating Get Request [URL:https://api-in21.leadsquared.com/v2/OpportunityManagement.svc/RetrieveTasksByOpportunityId] [Headers:{‘Content-Type’: ‘application/json’, ‘Accept’: ‘application/json’}] [Params:{‘accessKey’: ”, ‘secretKey’: ”, ‘opportunityId’: ‘aab97e51-4f5f-4991-8394-f7138f4b9559’}]
[2023-06-24 11:15:56,442] [6622-140289528641280] CRITICAL – Exception occurred: (‘Connection aborted.’, ConnectionResetError(104, ‘Connection reset by peer’))
- [2023-06-20 12:37:40,410] [6588-140269619132160] INFO [] – Initiating Get Request [URL:https://api-in21.leadsquared.com/v2/LeadManagement.svc/RetrieveLeadByPhoneNumber] [Headers:{‘Accept’: ‘application/json’, ‘Content-Type’: ‘application/json’}] [Params:{‘secretKey’: ”, ‘accessKey’: ”, ‘phone’: ‘9359893536’}]
[2023-06-20 12:37:40,418] [6588-140269619132160] CRITICAL [] – Exception occurred: (‘Connection aborted.’, ConnectionResetError(104, ‘Connection reset by peer’))
- [2023-06-20 17:32:31,208] [6597-139654964635392] INFO [] – Initiating Get Request [URL:https://api-in21.leadsquared.com/v2/OpportunityManagement.svc/RetrieveTasksByOpportunityId] [Headers:{‘Content-Type’: ‘application/json’, ‘Accept’: ‘application/json’}] [Params:{‘accessKey’: ”, ‘secretKey’: ”, ‘opportunityId’: ‘894e3585-a810-443e-acc2-c1e5a42d5982’}]
[2023-06-20 17:32:31,223] [6597-139654964635392] CRITICAL [] – Exception occurred: (‘Connection aborted.’, ConnectionResetError(104, ‘Connection reset by peer’))
- [2023-06-20 16:25:46,729] [6152-140379326433024] INFO [] – Initiating Get Request [URL:https://api-in21.leadsquared.com/v2/OpportunityManagement.svc/RetrieveTasksByOpportunityId] [Headers:{‘Accept’: ‘application/json’, ‘Content-Type’: ‘application/json’}] [Params:{‘secretKey’: ”, ‘accessKey’: ”, ‘opportunityId’: ‘894e3585-a810-443e-acc2-c1e5a42d5982’}]
[2023-06-20 16:25:46,734] [6152-140379326433024] CRITICAL [] – Exception occurred: (‘Connection aborted.’, ConnectionResetError(104, ‘Connection reset by peer’))
This error comes from the python code when multiple threads are running and are occupied. The mentioned error is no where to be thrown from our LeadSquared’s V2 API.
It asks to place time.sleep() inside the code in order to fix the issue.
Helpful articles –
https://www.itmaybeahack.com/homepage/iblog/architecture/C551260341/E20081031204203/index.html
