Hii I am new to using curl and all the networking stuff I just created a account and was reading the docs and I tried authenticating by using the following
curl --request GET \
--url https://api.themoviedb.org/3/authentication \
--header 'Authorization: Bearer MY_TOKEN' \
--header 'accept: application/json'
Nothing was printed in the console and I waited for a few minutes but still nothing. So, I tried using the -v verbose option to see what is happening inside the hood and found this
Note: Unnecessary use of -X or --request, GET is already inferred.
* Host api.themoviedb.org:443 was resolved.
* IPv6: 2405:200:1607:2820:41::36
* IPv4: 49.44.79.236
* Trying [2405:200:1607:2820:41::36]:443...
* Trying 49.44.79.236:443...
* connect to 2405:200:1607:2820:41::36 port 443 from 2409:40c1:4004:db3d:381e:ba36:2b84:1439 port 34890 failed: Connection timed out
* connect to 49.44.79.236 port 443 from 192.168.104.115 port 46994 failed: Connection timed out
* Failed to connect to api.themoviedb.org port 443 after 133645 ms: Could not connect to server
* closing connection #0
curl: (28) Failed to connect to api.themoviedb.org port 443 after 133645 ms: Could not connect to server
I have also opened my 443 port in firewall for tcp
¿No encuentras una película o serie? Inicia sesión para crearla:
¿Quieres puntuar o añadir este elemento a una lista?
¿No eres miembro?
Contestado por Travis Bell
el 17 de diciembre de 2024 a las 19:11
Hi @RUDisCOOL,
49.44.79.236
is not an AWS IP, and upon looking at thewhois
, I can see it belongs to Jio, which I assume is your ISP.Jio has been blocking TMDB off and on for a few years, I don't know why. You can read more about this on a recent thread here.
Contestado por RUDisCOOL
el 18 de diciembre de 2024 a las 00:49
@travisbell Thanks for the reply, I tried using a VPN which worked. Also, I changed my computers DNS to Cloudflare's DNS and that worked too.