The Operation couldn't be completed. (Cocoa error: 3840.)

末鹿安然 提交于 2019-12-01 16:13:02

You are adding %@&format=json&nojsoncallback=1 to the URL in connectToService:, and that new URL results in a webpage, not the JSON you expect (i.e. http://thetrouthunter.com/SVLocationsAPI.php&format=json&nojsoncallback=1).

It might be useful to log the actual result from the HTTP request so that you can debug this until you get JSON (i.e. prior to calling the serialization functions).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!