Supporto 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 risposte (nella pagina 1 di 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.

Non riesci a trovare un film o una serie Tv? Accedi per crearlo.

Globale

s focalizza la barra di ricerca
p apri menu profilo
esc chiudi una finestra aperta
? apri finestra scorciatoia tastiera

Su tutte le pagine di media

b torna indietro (o al precedente quando applicabile)
e vai alla pagina di modifica

Nelle pagine delle stagioni TV

(freccia destra) vai alla stagione successiva
(freccia sinistra) vai alla stagione precedente

Nelle pagine degli episodi TV

(freccia destra) vai all'episodio successivo
(freccia sinistra) vai all'episodio precedente

Su tutte le pagine di immagini

a apri finestra aggiungi immagine

Su tutte le pagine di modifica

t apri selettore traduzione
ctrl+ s invia modulo

Sulle pagine di discussione

n crea nuova discussione
w segna come visto/non visto
p cambia publico/privato
c cambia chiuso/aperto
a apri attivita
r rispondi alla discussione
l vai all'ultima risposta
ctrl+ enter invia il tuo messaggio
(freccia destra) pagina successiva
(freccia sinistra) pagina precedente

Impostazioni

Vuoi valutare o aggiungere quest'elemento a una lista?

Accedi