P
P
Ptmar2020-12-30 01:00:27
linux
Ptmar, 2020-12-30 01:00:27

Blocking at the provider or the recipient's server. Timeout cURL error when executing multiple curl commands in a row?

There is a plugin for Wordpress that periodically gives errors. After reviewing the logs, it turned out that several requests from the plugin are stopped by a timeout. I connected directly to the server and ran curl --verbose https://api.XXX.com

A few cUrl requests go through fine, then

Trying xx.xx.xx.xx...
* Connection timed out
* Failed connect to api .xxx.ru:443

Then again a few requests are normal.

The hoster and the company with the API server say that nothing is blocked for them. What command (tcptarceroute with parameters or something else) can you ask the hoster to execute on the server and show the logs so that you can see where the blocking is.

From my laptop and from another server, requests pass normally.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
CityCat4, 2020-12-30
@CityCat4

Yes, the provider needs you - to block you ... Insert a random pause between the launches of the curl and see if it helps or not. If it helps, the server is definitely blocking.

P
Ptmar, 2020-12-30
@Ptmar

I can't paste, it's a plugin problem. It's just that the provider says that it does not block, and the plugin developers say that their server does not receive all requests.
I need to show the problem to either one or the other so that they solve it. Maybe ask the host to run tcptraceroute with some parameters?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question