I'm trying to make a basic API request using curl, but I keep encountering the following error:
curl: (35) Recv failure: Connection reset by peer
Here's the exact command I'm running:
curl "https://api.themoviedb.org/3/movie/550?api_key=api_key_here"
What makes this particularly strange is:
Could this be related to rate limiting, an IP block, or changes on TMDB’s side? Any help in understanding what’s going on would be appreciated. Thanks!
Film of tv-serie niet gevonden? Meld je aan om deze toe te voegen.
Want to rate or add this item to a list?
Not a member?
Reactie van xd003
op 9 mei 2025 om 7:16 AM
"Below is the verbose output of the curl command I executed:
Reactie van devrush94
op 10 mei 2025 om 10:36 AM
Facing similar, has something changed in API?
Reactie van Baked2783
op 10 mei 2025 om 10:30 PM
I am seeing the same thing on IPv4 and IPv6. Intermittent failures with a TCP reset during TLS handshake. More details
Looks like TMDB is just using cloudfront so it's a bit strange it would fail with tcp conn reset.
Reactie van xd003
op 11 mei 2025 om 1:58 AM
This traceroute further highlights the issue. With the amount of evidence and reports shared in this thread, it's clear that the problem is well-documented. Hopefully, we’ll receive a response soon and TMDb will address it on their end.
Reactie van Baked2783
op 11 mei 2025 om 7:55 AM
I created a RIPE measurement to test this and it's a much more widespread problem. Almost all of them returned tls handshake failure https://atlas.ripe.net/measurements/102768292/results
Reactie van Travis Bell
op 12 mei 2025 om 3:53 PM
@Baked2783 You need to make sure to fill out the "hostname" field under the "more options" dropdown on the probe since we use SNI. Once you do, you can see below that everything looks fine:
https://atlas.ripe.net/measurements/102990217/results
With regards to the issue being discussed, it's hard to say what's gong on. One thing I've seen happen on multiple occasions is different blocks and routing issues caused by local ISP's. Take India for example, we've been on and off multiple ISP block lists for years. The forums are full of reports from Indian users regarding this.
One thing that has helped a lot of other users out (in India) is using a custom DNS server. We've seen problems with Cloudflare, so I don't usually recommend them, but I haven't seen many issues with Google (8.8.8.8) or Quad9 (9.9.9.9).
Reactie van xd003
op 12 mei 2025 om 10:32 PM
Thanks for the reply. If it were an ISP-level block, I would expect the requests to consistently fail or not get any response at all. In my case, though, the failures are intermittent - around 7 or 8 times out of 10, which makes it a bit more confusing.
Also, most of the reports I've come across from India seem to be related to the ISP Jio. My IP is based in Mumbai, India as well, but it's routed through the Oracle network (VPS), not Jio. I also tried switching to Google's DNS (8.8.8.8), but unfortunately, that hasn’t made any noticeable difference, the intermittent failures persist.
Reactie van Travis Bell
op 13 mei 2025 om 10:18 AM
Ya, it was just something to try as I have seen it help lots of users in the past.
Here's two more measurements (50 probes each) done in India alone (this brings the total up to 150 tests with my other one above):
All of these failures were failures to connect though, not anything to do with TLS and/or the issue described above.
Reactie van Baked2783
op 13 mei 2025 om 10:26 AM
In my case, the isp is airtel and they are blocking access. Jio is working fine. I am trying to get a ticket created with them to get this fixed. It's so annoying. ECH can not come soon enough
Reactie van Travis Bell
op 13 mei 2025 om 11:15 AM
Ya, for the hell of it, I did two separate tests:
But truthfully, there aren't that many Jio or Airtel probes, so our testable surface area is small.
Reactie van mini5183
op 14 mei 2025 om 7:59 AM
@travisbell facing same issue on oracle (Mumbai, India) vps, the same website works fine in netcup nuremberg vps
Reactie van xd003
op 14 mei 2025 om 8:22 AM
It seems like the issue is specific to the Mumbai-based VPS on Oracle Cloud, as testing from other VPS locations on Oracle Cloud works without any problems. This indicates that access may be blocked or throttled specifically for that region. I'll try reaching out to them to investigate and resolve this issue. However, it might be more effective if more users report similar problems.
Reactie van xd003
op 14 mei 2025 om 8:22 AM
In the meantime, does anyone know of an alternative mirror API for The Movie Database that we can use as a workaround?
Reactie van mini5183
op 14 mei 2025 om 10:24 AM
Yea i tried curl and connection reset by peer on most of them