Skip to content

Image upload issue #12

Open
Open

Description

@malikmotani

11-30 11:22:29.106 5465-5873/alessandro.firebaseChat E/StorageException: StorageException has occurred.
An unknown error occurred, please check the HTTP result code and inner exception for server response.
Code: -13000 HttpResult: 400
11-30 11:22:29.106 5465-5873/alessandro.firebaseChat E/StorageException: The server has terminated the upload session
java.io.IOException: The server has terminated the upload session
at com.google.firebase.storage.UploadTask.zzcyp(Unknown Source)
at com.google.firebase.storage.UploadTask.zzcyo(Unknown Source)
at com.google.firebase.storage.UploadTask.run(Unknown Source)
at com.google.firebase.storage.StorageTask$5.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
11-30 11:22:29.114 5465-5465/alessandro.firebaseChat E/MainActivity: onFailure sendFileFirebase An unknown error occurred, please check the HTTP result code and inner exception for server response.

Activity

  1. doanngoctu95 commented on Jan 19, 2017

    @doanngoctu95

    Hey i also make this problem like you, i want to know have you fixed it? and if ok, can you tell me how to fix it? tks so much!!!

  2. doanngoctu95 commented on Jan 19, 2017

    @doanngoctu95

    i've just fixed it, I add permission : WRITE_EXTERNAL_STORAGE
    and change TouchImageView into TouchImageView of my project.

  3. MuniraAwadh commented on Aug 18, 2017

    @MuniraAwadh

    i have the same problem, what is the solution?

  4. equilizer commented on Aug 23, 2017

    @equilizer

    please help same problem

  5. R33N4K0R commented on Aug 23, 2017

    @R33N4K0R
  6. MuniraAwadh commented on Aug 23, 2017

    @MuniraAwadh
  7. fritexvz commented on Jun 10, 2019

    @fritexvz

    Your app should be compatible with Android OS 5.1 and newer, because you cannot read/write internal & external storage.

    More on:
    http://syncthing/syncthing-android#29

    Android 4.0, 4.1, 4.2, 4.3, 4.4 and even 5.0 are affected by the issue of Google, not having an option to change the permission for your application.

    You cannot even call the request for permission, because it does not exist as is in the stated Android OS versions, while changing the android manifest.xml file does not help either.

    Regarding the HTTP error from Firebase, did you copy the right Storage Bucket parameter/URL to the app?
    What kind of Storage rules are you using?
    Try with these one:

    service firebase.storage {
      match /b/{bucket}/o {
        match /{allPaths=**} {
          allow read, write: if request.auth!=null;
        }
      }
    }
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions