HTTP status code 0 - Error Domain=NSURLErrorDomain?

后端 未结 12 2285
予麋鹿
予麋鹿 2020-11-27 14:58

I am working on an iOS project.

In this application, I am downloading images from the server.

Problem:

While downloading images I a

12条回答
  •  臣服心动
    2020-11-27 15:56

    From my limited experience, I would say that the following two scenario could cause response status code: 0, keep in mind; their could be more, but I know of those two:

    • your connection maybe responding slowly.
    • or maybe the the back-end server is not available.

    the thing is, status: 0 is slightly generic, and their could be more use cases that trigger an empty response body.

提交回复
热议问题