uploadcare / uploadcare-ios

UploadcareKit: iOS SDK for Uploadcare API
http://uploadcare.com/
MIT License
25 stars 16 forks source link

No way to see response error #30

Closed anatoliyv closed 4 years ago

anatoliyv commented 5 years ago

When uploading a big files, if file size is big enough and can not be supported by by subscription plan it's impossible to see error message. Response I got from a server:

POST https://upload.uploadcare.com/base/
...
File is too large.

Update: Here is how error looks in SDK in completion handler:

(lldb) po error
▿ Optional<Error>
  - some : Error Domain=NSCocoaErrorDomain Code=3840 "JSON text did not start with array or object and option to allow fragments not set." UserInfo={NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.}
rsedykh commented 4 years ago

Hi, @anatoliyv! We've just released new uploadcare-swift integration, 0.1.0-alfa. I hope you can check it out. Feedback is very welcome. If you have any feature requests or questions, shoot!

rsedykh commented 4 years ago

Btw, I forgot to mention that this issue is fixed in the new library.