Skip to content

Anyone have issues uploading through an iOS Simulator? Works fine in production #19

@miguelespinoza

Description

@miguelespinoza

I'm having issues with the Simulator where file uploads just don't work. Meanwhile production builds are able to upload files no problem. Ideally, I can upload files locally to do feature development faster.

I'm slowly running out of ideas for what could be the problem. I've narrowed it down to something to do with TUSKit.
https://github.com/tus/TUSKit/blob/1.4.2/TUSKit/TUSData.m#L164-L170

In the logs I see:

<TUSResumableUpload.m:(547)> Resuming upload to http://localhost:3000/tus_uploads/files/547291eb8834d6b4771692ab3bf6208b with id 3A802AA9-4C1B-4C00-B30B-E1D0E149771E from offset 0
<TUSData.m:(122)> TUSData stream opened
<TUSData.m:(139)> Reading 32768 bytes from 0 to 32768 until 580198
<TUSData.m:(166)> TUSData stream error (null)

Testing against https://master.tus.io makes no difference

<TUSResumableUpload.m:(547)> Resuming upload to https://master.tus.io/files/86b6afe994c191e87af5a7dc76f04e27+D5qDDrw4o9xSqahOrqXx2wt.lObIfo3iuNAHStq_QMhrd0CpqqYoqympv5x5U_EceIm7C1xJn9hjlCwlePqTK4BnZaMG55Hc.Dvb2ibWYj8jID0eHE8xFY6B6TiDuKhE with id D6045D90-D394-4C6F-AB3D-CB31CB492250 from offset 0
<TUSData.m:(122)> TUSData stream opened
<TUSData.m:(139)> Reading 32768 bytes from 0 to 32768 until 277804
<TUSData.m:(166)> TUSData stream error (null)

which obviously is no help at all.
Curious if anyone else has had problems with file uploads in the iOS Simulator. I don't see why a fix would be needed on the library since it works in production, I'd imagine it's got something to do with my Simulator configuration, so that's the angle I'm investigating

Some details of my environment:

"expo": "50.0.8",
"react-native": "0.73.4",
"react-native-tus-client": "1.1.0"

Running on iPhone 15 Pro Simulator - iOS 17.2

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