Codeless logic - Error "read ECONNRESET"

Are you looking for help?

This is a support forum for reporting issues related to Backendless services. Please note that due to our support policy we cannot provide you help with debugging your code, consulting in regards to any language or third-party library usage. For this kind of questions we recommend using more appropriate forums like Stack Overflow.

In order to suggest you a quality solution, we shall usually ask you to provide the details mentioned below first. Including them into your topic right away helps us to start investigating your issue much faster.

In case you have a suggestion or an idea, the details below are not always required, though still any additional background is welcome.

Backendless Version (3.x / 6.x, Online / Managed / Pro )

Codeless Logic

Client SDK (REST / Android / Objective-C / Swift / JS )

Application ID


Expected Behavior

Please describe the expected behavior of the issue, starting from the first action.

  1. I’m making a request to the following endpoint “
  2. I should get a proper JSON response with various data.

Actual Behavior

Please provide a description of what actually happens, working from the same starting point.

Be descriptive: “it doesn’t work” does not describe what the behavior actually is – instead, say “the request returns a 400 error with message XXX”. Copy and paste your logs, and include any URLs.

  1. I’m making a request to the following endpoint “
  2. I’m getting the error “read ECONNRESET” or sometimes "connect ECONNREFUSED"

Reproducible Test Case

Please provide a simple code that could be run in a new clean app and reproduce the issue.

If the issue is more complex or requires configuration, please provide a link to a project on Github that reproduces the issue.

Use this curl request to reproduce

curl -X “POST” “
-H ‘Content-Type: application/json’
-H ‘Accept: application/json’
-H ‘token: 12923949349325552’
-d $’{
“resume”: “”,
“language”: “en-US”,
“whitelist”: [

Hello @Arnold_N

I managed to reproduce only in 5% of attempts, tell me, do you get an error for each request or do you periodically?

I created an internal ticket (BKNDLSS-26257).

It’s happening with every request we make. Also this only started happening yesterday, this API has been working perfectly for months. It also serves a live product and that’s why the urgency. Is there anything you deployed yesterday that could be causing this issue.

Hello @Arnold_N

We just investigated the issue and found that your logic makes a few requests to external services and it appears, some of that requests fail with the following error: ECONNREFUSED (I masked the real IP address), I would recommend you to add a couple “Print” (with some log message) blocks in order to figure out what exactly request fails.

You can see that if you open the REAL-TIME LOGGING

Also in the log, you can see that the API Service starts/ends in normal mode without any internal error

Please let us know if we can assist you with anything else.
Regards, Vlad

Thank you really appreciate this, this response allowed me to figure out the problem and i’ve fixed it. :grinning: