Skip to content

Image widget is crashing when using network paths from https://imagekit.io #894

@ckuzak

Description

@ckuzak

Has your issue been reported?

  • I have searched the existing issues and confirm it has not been reported.
  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

Multiple crash types when using Image widget with network path to images behind https://imagekit.io image cdn. The crashes don't appear to impact user experience but are persistent. I have not looked at the http headers being returned by imagekit but wonder if the first response is confusing cache library to assume network path is null.

example uri: https://ik.imagekit.io/shopkuzaksapp/tr:w-1080,h-1350,fo-auto/v0/b/shopkuzaks-dev.appspot.com/o/users%2Fy5BlDdwN2reExitmNc1SxQdu7ou1%2Fuploads%2F1684367422263298_0.jpg?alt=media&token=ce712ba4-7a41-466d-bb72-3325e16e60d8

com.kuzakscloset.shopkuzaks_issue_8d7c4f9a531512429abe3d4344bc662e_crash_session_af49ac84aeb94afd8e3d1c9b5c41f160_DNE_0_v2_stacktrace.txt

com.kuzakscloset.shopkuzaks_issue_8d7c4f9a531512429abe3d4344bc662e_crash_session_af49ac84aeb94afd8e3d1c9b5c41f160_DNE_0_v2.log

Expected Behavior

no crashes, images load correctly from imagekit cdn network url path

Steps to Reproduce

  1. add image widget to blank page
  2. set to network path https://imagekit.io/$path
    example path: https://ik.imagekit.io/shopkuzaksapp/tr:w-1080,h-1350,fo-auto/v0/b/shopkuzaks-dev.appspot.com/o/users%2Fy5BlDdwN2reExitmNc1SxQdu7ou1%2Fuploads%2F1684367422263298_0.jpg?alt=media&token=ce712ba4-7a41-466d-bb72-3325e16e60d8

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

IT4shcr1sIhgofkB0ZD+a8B7/SkRQ1g5RoI4sctCTQwgGL7yBux3Ovf8QFZuXcu8aVNcE2aJ+U8y+tXFvc79JMArEyecGdVz+M51Ew/ke2iRWpPTErrpQkZtJJthIVSH36av3xZCJsRvdVoZwE+uPfK/YCnDFOu/Zwh9f6PHaOI=

Context

This issue doesn't seem to result in user visible issues. Maybe it causes a bit of a flicker. I have multiple crashlytics crashes so this happens reliably first time the image is loading.

Visual documentation

just trigger image load

Additional Info

No response

Environment

- FlutterFlow version: 3.1
- Platform: iOS and Android
- Browser name and version:
- Operating system and version affected:

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions