Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图片资源不能访问 #6

Open
symboll opened this issue Aug 18, 2020 · 1 comment
Open

图片资源不能访问 #6

symboll opened this issue Aug 18, 2020 · 1 comment

Comments

@symboll
Copy link

symboll commented Aug 18, 2020

Posts里的imgUrl 地址不能访问了。是否是 服务器过期了?

@ilobos
Copy link

ilobos commented Jan 30, 2021

如果遇到:CERTIFICATE_VERIFY_FAILED 这个错误, 那是Flutter加载图片出错,未加载出来。这是证书校验问题,直接在Chrome中打开图片可以看到有不被信任的证书的相关提示;如果要继续使用 Image.network(),可以下载图片之后,上传到OSS等其他平台,使用正确的https证书的链接;注意如果是http链接,在启动的时候Flutter会报错,因为默认只接受https;如果要识别http,则需要改其他的东西了,不在此issue范围,可以自行研究。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants