昨天遇到的這個問題,詳細信息:
----->類和方法__25+[Manager noticeRequest:]_block_invoke399----->錯誤信息Error Domain=NSCocoaErrorDomain Code=3840 "未能完成操作。(“Cocoa”錯誤 3840。)" (JSON text did not start with array or object and option to allow fragments not set.) UserInfo=0x14f7aa30 {NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set., NSUnderlyingError=0x14faebd0 "Request failed: not found (404)"}
尋找方法中…………
Error Domain=NSCocoaErrorDomain Code=3840 "The operation couldn’t be completed. (Cocoa error 3840.)" 提供了一種方法,雖然和我的不一樣,但根據這篇文章也得到了解決辦法!打印出 option,得到如下信息:

仔細觀察后發現了問題:網址 中少加了一個 “/” !!
粗心大意常犯錯…………
