How to fix this network request failed

When trying to upload the image from the IOS simulator with the react native expo application I get this error:
“”"
WARN Possible Unhandled Promise Rejection (id: 1):
TypeError: Network request failed
TypeError: Network request failed
at anonymous (http://192.168.0.9:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true:6693:33)
at apply (native)
at anonymous (http://192.168.0.9:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true:39678:26)
at _callTimer

“”"

Hi @umggustavoargueta

Please show the code that you are using to do the upload?

“Unhandled Promise Rejection” means the code is assuming that the upload will work and not correctly dealing with a failed upload.

e.g. see the following for how this can be done: