„The Movie Database“ palaikymas

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 atsakė (on page 1 iš 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.

Negalite rasti filmo ar TV laidos? Prisijunkite, kad sukurtumėte.

Bendras

s susitelkti į paieškos juostą
p profilio meniu
esc uždarykite atidarytą langą
? spartieji klavišai

Medijų puslapiuose

b grįžkite atgal (arba tėvams leidus)
e į redagavimo puslapį

TV sezono puslapiuose

(dešinė rodyklė) sekantis sezonas
(kairė rodyklė) ankstesnis sezonas

TV epizodo puslapiuose

(dešinė rodyklė) sekantis epizodas
(kairė rodyklė) ankstesnis epizodas

Visuose atvaizdžio puslapiuose

a atverti atvaizdžio pridėjimo langą

Visuose redagavimo puslapiuose

t vertimo parinktys
ctrl+ s pateikti formą

Diskusijų puslapiuose

n sukurti naują diskusiją
w perjungti peržiūros būseną
p perjungti viešasis / privatus
c perjungti uždaryti / atidaryti
a peržiūrėti aktyvumą
r atsakyti į pokalbį
l į paskutinį atsakymą
ctrl+ enter pateikti pranešimą
(dešinė rodyklė) sekantis puslapis
(kairė rodyklė) ankstesnis puslapis

Nustatymai

Norite įvertinti ar įtraukti šį elementą į sąrašą?

Prisijungti