The Movie Database Support

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 replies (on page 1 of 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.

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Login