Skip to content

Getting error while sending image on chat - File type application/octet-stream is not supportedΒ #1736

@ChiragGajjar

Description

@ChiragGajjar

Which packages are you using?

stream_chat_flutter

On what platforms did you experience the issue?

iOS, Android

What version are you using?

stream_chat_flutter: ^6.10.0

What happened?

When we send image to chat it will getting upload error

Steps to reproduce

1. Chat message screen
2. select image and send
3. Getting error

Supporting info to reproduce

It will not getting error for all images, this happened only for some images

Relevant log output

flutter: 2023-09-13 14:53:11.923221 🚨 πŸ•ΈοΈ β•” DioExceptionType.badResponse
flutter: 2023-09-13 14:53:11.923911 🚨 πŸ•ΈοΈ β•‘    {
flutter: 2023-09-13 14:53:11.924592 🚨 πŸ•ΈοΈ β•‘         code: 4,
flutter: 2023-09-13 14:53:11.925728 🚨 πŸ•ΈοΈ β•‘         message: "UploadImage failed with error: "File type application/octet-stream is not supported"",
flutter: 2023-09-13 14:53:11.925857 🚨 πŸ•ΈοΈ β•‘         StatusCode: 400,
flutter: 2023-09-13 14:53:11.926025 🚨 πŸ•ΈοΈ β•‘         duration: "0.00ms",
flutter: 2023-09-13 14:53:11.926193 🚨 πŸ•ΈοΈ β•‘         more_info: "https://getstream.io/chat/docs/api_errors_response",
flutter: 2023-09-13 14:53:11.926666 🚨 πŸ•ΈοΈ β•‘         details: []
flutter: 2023-09-13 14:53:11.926803 🚨 πŸ•ΈοΈ β•‘    }

Flutter analyze output

No response

Flutter doctor output

[βœ“] Flutter (Channel stable, 3.10.5, on macOS 13.4.1 22F770820d darwin-arm64, locale en-IN)
    β€’ Flutter version 3.10.5 on channel stable at /Volumes/Personal/flutter
    β€’ Upstream repository https://github.com/flutter/flutter.git
    β€’ Framework revision 796c8ef792 (3 months ago), 2023-06-13 15:51:02 -0700
    β€’ Engine revision 45f6e00911
    β€’ Dart version 3.0.5
    β€’ DevTools version 2.23.1

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    β€’ Android SDK at /Users/chiragsondagar/Library/Android/sdk
    β€’ Platform android-34, build-tools 34.0.0
    β€’ Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    β€’ Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
    βœ— Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[βœ“] Xcode - develop for iOS and macOS (Xcode 14.3.1)
    β€’ Xcode at /Applications/Xcode.app/Contents/Developer
    β€’ Build 14E300c
    β€’ CocoaPods version 1.12.0

[βœ“] Chrome - develop for the web
    β€’ Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[βœ“] Android Studio (version 2022.1)
    β€’ Android Studio at /Applications/Android Studio.app/Contents
    β€’ Flutter plugin can be installed from:
      πŸ”¨ https://plugins.jetbrains.com/plugin/9212-flutter
    β€’ Dart plugin can be installed from:
      πŸ”¨ https://plugins.jetbrains.com/plugin/6351-dart
    β€’ Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)

[βœ“] Connected device (3 available)
    β€’ iPhone 14 Pro (mobile) β€’ 52EAB4E7-7218-4DBD-AAFD-976DA00D6BA8 β€’ ios            β€’ com.apple.CoreSimulator.SimRuntime.iOS-16-4 (simulator)
    β€’ macOS (desktop)        β€’ macos                                β€’ darwin-arm64   β€’ macOS 13.4.1 22F770820d darwin-arm64
    β€’ Chrome (web)           β€’ chrome                               β€’ web-javascript β€’ Google Chrome 116.0.5845.140

[βœ“] Network resources
    β€’ All expected network resources are available.

! Doctor found issues in 1 category.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

StalebugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions