(Cocoa error 3840.)" (Invalid value around character 0.) AFNetworking

后端 未结 3 804
南方客
南方客 2020-12-29 04:14

I\'ve been getting the following error when using the GET method to retrieve a file from a server:

Error: Error Domain=NSCocoaErrorDomain Code=3840 \"The ope         


        
3条回答
  •  鱼传尺愫
    2020-12-29 05:00

    I am pretty sure that you have a valid response from server but your response is not a valid format in JSON, probably because you have carachters in front of first { . Please try this: Put the same URL address manually in your browser and you will see the culprit in the response. Hope it helped.

提交回复
热议问题