Failed to open TCP connection

Hi all, I have a rails application and I’m encountering this error quite frequently these couple of days. I’ve already increased the number of instances and changed to use performance type instance but I still can’t figure out why this is happening. Anyone can help please?

[23850fff-685c-407f-bb0a-450f28a9469b] JsonApiClient::Errors::ConnectionError (Failed to open TCP connection to <redacted>:443 (execution expired)):

Did this change make the error less frequent? It is a good direction to look in: what’s your req/sec, CPU load and mem usage patterns?

Sadly, nope, the amount of errors remain constant throughout

These are the stats. I’m already over-provisioning and they aren’t hitting the limits from what I see

You are not giving us much to go on.

That seems like an odd port choice for a JSON API. Normally that is reserved for SSH.

Machine size of the server running your Rails app is unlikely to be the problem (unless your Rails app is trying to use its own API?) Can you tell us more about the service that your Rails app is trying to reach?

Oh my understanding is that the port is used for standard api call over https. We are using port 80 for http and 443 for https. So the main idea is this server is calling an api on another server (also ours, on another domain). This api endpoint has been running for the past 3 years and it’s only these couple of days that we started seeing these errors.

sorry, my bad, 443 is correct for https. I don’t know what I was thinking.

Does your server have any logs?

Hey @rubys sorry for replying late. We have since moved out from fly.io and it’s working fine for us now. Thanks for trying to help! :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.