flutter - flutter HttpException:在收到完整标头之前连接已关闭
问题描述
它仅发生在图像 URL 加载以下图像会导致问题
flutter: Another exception was thrown: HttpException: Connection closed before full header was received, uri = https://wagstays-static-cdn-dev.s3.amazonaws.com/media/user_89/pet/wagstays_pet_.2d7f49042718400aa970361186dc7e0e.jpg
Image.network(snapshot.data.imageUrl,
width: MediaQuery.of(context).size.width,
height: MediaQuery.of(context).size.height / 2.98,
),
解决方案
推荐阅读
- neo4j - 切换到 Neo4j 后 Swagger UI 消失(显示“数据库”而不是 Swagger)
- python - 查找括号之间的最大长度
- spring - 实体管理器是否在每次请求后自动清除?
- rest - Spring Boot 406“不可接受”
- scala - 使用 Spark Scala 将平面数据转换为嵌套对象
- telegram - AuthKeyDuplicatedError 电视节目
- android - 飞镖,颤动 - ListView 不显示
- python - 是否可以将图像并行写入磁盘?(Python)
- reactjs - MaterialUI 组件不适用于反应组件
- javascript - 如何用 jquery 或 js 结束 CSS 过渡?