Community Discussion
Curl inside container doesn't work
over 2 years ago by Lex Pal
Hello, I'm using PHP in a docker container with curl to use Taboola API. Everything worked fine few months but today I get issues to run a curl request to backstage.taboola.com both in php using curl module and in the terminal inside container.
For example:
[root@e9dbea93b1cd www]# curl --location --request POST 'https://backstage.taboola.com/backstage/oauth/token?client_id=123&client_secret=123&grant_type=client_credentials' --header 'header: Content-Type: application/x-www-form-urlencoded' -v
- About to connect() to backstage.taboola.com port 443 (#0)
- Trying 151.101.1.44...
- Connected to backstage.taboola.com (151.101.1.44) port 443 (#0)
- Initializing NSS with certpath: sql:/etc/pki/nssdb
- CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none - Operation timed out after 300270 milliseconds with 0 out of 0 bytes received
- Closing connection 0
curl: (28) Operation timed out after 300270 milliseconds with 0 out of 0 bytes received
The same curl request works fine locally via the host terminal or Postman for example.
It looks like a blocking. Can you help me with it please?