Suport de The Movie Database

Warning: exif_imagetype(https://image.tmdb.org/t/p/w1920_and_h800_multi_faces//41e5H3UhT7D8VYBh4rdGy5fB0lv.jpg?: failed to open stream: Connection timed out why is that ?

8 resposta (a les pàgines 1 de 1)

Jump to last post

I have no problem to load this image.

Note : Image links shouldn't the API key. The correct link is just https://image.tmdb.org/t/p/w1920_and_h800_multi_faces//41e5H3UhT7D8VYBh4rdGy5fB0lv.jpg .

Did you retry ? This may be linked to this : https://www.themoviedb.org/talk/660c2dedc8a5ac017c79b8ca

Bunny was not having issues yesterday, only for ~an hour this morning (MST).

Is your PHP code running on the same machine you are testing with your browser?

Ok, so these are two completely different environments.

You'll want to start by comparing the output on both environments of a DNS lookup like dig:

dig image.tmdb.org

; <<>> DiG 9.10.6 <<>> image.tmdb.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10047
;; flags: qr rd ra cd; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;image.tmdb.org.            IN  A

;; ANSWER SECTION:
image.tmdb.org.     60  IN  CNAME   tmdb-image-prod.b-cdn.net.
tmdb-image-prod.b-cdn.net. 35   IN  A   185.93.1.247

;; Query time: 140 msec
;; SERVER: 192.168.106.1#53(192.168.106.1)
;; WHEN: Tue Apr 02 15:10:22 MDT 2024
;; MSG SIZE  rcvd: 98

Please, do the test asked above by the asministrator of the site.

Ok, so you're getting 138.199.37.229 back, that seems correct.

Next up would be to try a cURL command on your server, to see if it's just something PHP related. What is the output of this command:

curl -v "https://image.tmdb.org/t/p/w440_and_h660_face/tMefBSflR6PGQLv7WvFPpKLZkyk.jpg"

Mine is:

*   Trying 185.93.1.247:443...
* Connected to image.tmdb.org (185.93.1.247) port 443
* ALPN: curl offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* (304) (IN), TLS handshake, Server hello (2):
* (304) (IN), TLS handshake, Unknown (8):
* (304) (IN), TLS handshake, Certificate (11):
* (304) (IN), TLS handshake, CERT verify (15):
* (304) (IN), TLS handshake, Finished (20):
* (304) (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / AEAD-AES256-GCM-SHA384
* ALPN: server accepted h2
* Server certificate:
*  subject: CN=image.tmdb.org
*  start date: Feb 26 14:08:28 2024 GMT
*  expire date: May 26 14:08:27 2024 GMT
*  subjectAltName: host "image.tmdb.org" matched cert's "image.tmdb.org"
*  issuer: C=US; O=Let's Encrypt; CN=R3
*  SSL certificate verify ok.
* using HTTP/2
* [HTTP/2] [1] OPENED stream for https://image.tmdb.org/t/p/w440_and_h660_face/tMefBSflR6PGQLv7WvFPpKLZkyk.jpg
* [HTTP/2] [1] [:method: GET]
* [HTTP/2] [1] [:scheme: https]
* [HTTP/2] [1] [:authority: image.tmdb.org]
* [HTTP/2] [1] [:path: /t/p/w440_and_h660_face/tMefBSflR6PGQLv7WvFPpKLZkyk.jpg]
* [HTTP/2] [1] [user-agent: curl/8.4.0]
* [HTTP/2] [1] [accept: */*]
> GET /t/p/w440_and_h660_face/tMefBSflR6PGQLv7WvFPpKLZkyk.jpg HTTP/2
> Host: image.tmdb.org
> User-Agent: curl/8.4.0
> Accept: */*
>
< HTTP/2 200
< date: Wed, 03 Apr 2024 15:03:27 GMT
< content-type: image/jpeg
< content-length: 23756
< server: BunnyCDN-IL1-894
< cdn-pullzone: 775336
< cdn-uid: 29af4e0e-bcbd-4fcb-8635-74ddc38a1ebf
< cdn-requestcountrycode: CA
< cache-control: public, max-age=31919000
< etag: "65cd2faa-5ccc"
< last-modified: Wed, 14 Feb 2024 21:24:58 GMT
< cdn-storageserver: NY-267
< cdn-requestpullsuccess: True
< cdn-fileserver: 751
< perma-cache: HIT
< cdn-proxyver: 1.04
< cdn-requestpullcode: 200
< cdn-cachedat: 04/01/2024 18:03:29
< cdn-edgestorageid: 871
< cdn-status: 200
< cdn-requestid: 7b08cdc80979727223d56cad08181f23
< cdn-cache: HIT
< accept-ranges: bytes
<
Warning: Binary output can mess up your terminal. Use "--output -" to tell
Warning: curl to output it to your terminal anyway, or consider "--output
Warning: <FILE>" to save to a file.

* Failure writing output to destination
* Connection #0 to host image.tmdb.org left intact

Ok, so you have no problem grabbing an image on your server, your issue is something PHP related.

At this point, since I have no knowledge of PHP, I can't help anymore. I usually recommend posting your issue over on a site like Stack Overflow where you can target PHP developers for help.

No trobeu una pel·lícula o una sèrie? Inicieu la sessió per a crear-la.

Global

s centra la barra de cerca
p obre el menú del perfil
esc tanca una finestra oberta
? obre la finestra de dreceres de teclat

A les pàgines de materials

b torna enrere (o la superior quan sigui aplicable)
e ves a la pàgina d’edició

A les pàgines de temporades

(fletxa dreta) ves a la temporada següent
(fletxa esquerra) ves a la temporada anterior

A les pàgines d'episodis

(fletxa dreta) ves a l'episodi següent
(fletxa esquerra) ves a l'episodi anterior

A totes les pàgines d'imatges

a obre la finestra d'afegir imatges

A totes les pàgines d'edició

t obre el selector de traducció
ctrl+ s envia el formulari

A les pàgines de debat

n crea un debat nou
w canvia l'estat de visualització
p canvia públic/privat
c tanca o obre
a obre activitat
r resposta al debat
l ves a la darrera resposta
ctrl+ enter envieu el vostre missatge
(fletxa dreta) pàgina següent
(fletxa esquerra) pàgina anterior

Configuracions

Desitgeu valorar o afegir aquest element a una llista?

Inicieu la sessió