Response failure when using AFHTTPRequestOperationManager

后端 未结 1 549
萌比男神i
萌比男神i 2021-01-14 13:41

When i tried to call API(AFHTTPRequestOperationManager) for authentication method with exact username and password getting exact response and method was success. Then i trie

相关标签:
1条回答
  • 2021-01-14 14:11

    Your hitting your failure block because the api your hitting is returning an http response code of 400 and AFNetworking is correctly interpreting that as an error. You can still get the more detailed data from the response by using the responseData and responseString properties of the AFHTTPRequestOperation object provided in the failure block.

    0 讨论(0)
提交回复
热议问题