View Categories

API call failures || Not hitting LSQ platform

1 min read

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,418] [6588-140269619132160] CRITICAL [] – Exception occurred: (‘Connection aborted.’, ConnectionResetError(104, ‘Connection reset by peer’))

[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,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

https://stackoverflow.com/questions/383738/104-connection-reset-by-peer-socket-error-or-when-does-closing-a-socket-resu

https://stackoverflow.com/questions/52051989/requests-exceptions-connectionerror-connection-aborted-connectionreseterro



Scroll to Top