iOS afnetworking Error Resolution

Source: Internet
Author: User

Error log:
error domain=nscocoaerrordomain code=3840" The operation couldn ' t be completed. (Cocoa error 3840.) " (No string key for value in object around character 22.) userinfo=0x7f7f8b015d60 {Nsdebugdescription=no string key for value in object around character.} 
 
 error reason: 
 server returns JSON format problem 
 
 workaround: 
 A. Grab packet or browser debug interface 
1. Grab Bag: 

< Span class= "S1" >sudo tcpdump-a  host 192.x.x.x

tcpdump-i EN3 host 192. x.x.x

-A plaintext display

-i En3:en3 for Device name network interface

2. Browser debugging

two. Online JSON format Proofing
 
http://tool.oschina.net/codeformat/json JSON online format to find the problem, the server returned is mainly using single quotation marks to cause errors 
 
 
 

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

iOS afnetworking Error Resolution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.