Skip to content

FileNotFoundException when ‘concurrently' accessing file.getDataInBackground() #537

@natario1

Description

@natario1

When a certain action is done, I have two different classes accessing the same ParseFile, using ParseFile.getDataInBackground().

4 times out of 5 it works. The other time this happens:

  • one of the accessors successfully gets data
  • the other throws FileNotFoundException with the following message:

Source '/data/user/0/com.my.package/cache/com.parse/files/https:/storage.googleapis.com/my-bucket/c62972c6c30ce0f1b369e4a1b68b0f74_sSeyXFr3R2.jpeg.tmp' does not exist

I need these two classes to access the file, and they do not communicate with each other. Can you imagine any workaround to this on my side (other than enqueuing all getDataInBackground calls, which I thought was already done by Parse SDK)?

Sure I could get the URL and http request the data myself, but that seems overkill.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions