alamofire.error Code=-6006 "JSON could not be serialized

前端 未结 3 1462
名媛妹妹
名媛妹妹 2020-12-03 17:42

Been working on this for a bit with no success. I have a function that goes to a UIButton solely to perform alamofire calls to my rails api which uses all JSON.

3条回答
  •  借酒劲吻你
    2020-12-03 18:03

    The response returned by the server is not in the JSON format. You can use the tool to test the request first.

    Print out of the error code is not a HTTP error code, because of the failure to resolve JSON

提交回复
热议问题