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 回复(第 1 页,共 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.

找不到电影或剧集?登录并创建它吧。

全站通用

s 聚焦到搜索栏
p 打开个人资料菜单
esc 关闭打开的窗口
? 打开键盘快捷键窗口

在媒体页面

b 返回(或返回上级)
e 进入编辑页面

在电视季页面

(右箭头)下一季
(左箭头)前一季

在电视集页面

(右箭头)下一集
(左箭头)前一集

在所有图像页面

a 打开添加图片窗口

在所有编辑页面

t 打开翻译选择器
ctrl+ s 提交

在讨论页面

n 创建新讨论
w 切换关注状态
p 设为公开 / 私密讨论
c 关闭 / 开放讨论
a 打开活动页
r 回复讨论
l 跳转至最新回复
ctrl+ enter 发送信息
(右箭头)下一页
(左箭头)前一页

设置

想给这个条目评分或将其添加到片单中?

登录

还不是会员?

注册加入社区