请告诉如何解决这个错误,它是服务器端错误或代码错误或json数据(响应)中的问题
Error: Error Domain=NSCocoaErrorDomain Code=3840 "The operation couldn’t be completed. (Cocoa error 3840.)" (JSON text did not start with array or object and option to allow fragments not set.) UserInfo=0x7fd4484df340 {NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set., NSUnderlyingError=0x7fd448488120 "Request failed: internal server error (500)"}
最佳答案
查看以下行:“请求失败:内部服务器错误 (500)”。然后谷歌搜索“Status 500”。那应该回答你的问题。
一旦您实际从服务器获得有用的响应并遇到此错误 3840,请搜索错误 3840,它有大约 1000 个答案。
关于ios - Error Domain=NSCocoaErrorDomain Code=3840 是属于服务器端还是本地代码端?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33917827/