itinance / itinance/react-native-fs

Unable to handle status code 422 Unprocessable Entity

Open
#667 3 comments 2 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

While uploading the image to the server I am getting below error in the catch block.

```
Error: ENOENT: no such file or directory, open 'MY_SERVER_URL'
at createErrorFromErrorData (blob:http://localhos…4-7692e016a41a:3988)
at blob:http://localhos…4-7692e016a41a:3940
at MessageQueue.__invokeCallback (blob:http://localhos…4-7692e016a41a:4486)
at blob:http://localhos…4-7692e016a41a:4217
at MessageQueue.__guard (blob:http://localhos…4-7692e016a41a:4390)
at MessageQueue.invokeCallbackAndReturnFlushedQueue (blob:http://localhos…4-7692e016a41a:4216)
at debuggerWorker.js:72
```

Server Response:
{"detail":"File size should be less than 3 MB", status_code: 422}
![Screenshot 2019-04-26 at 1 40 30 PM](https://user-images.githubusercontent.com/31363178/56793201-0c405000-6829-11e9-9603-667a2d2734d4.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.