How to resolve this error by returning from web service access?

Asked

Viewed 226 times

0

I’m developing an app that consumes data from a web service and using Afnetworking to make the requisitions.

During the testing phase the app worked and received the data normally. So I exported the database to the online web service and had the following problem:

-[_Nsinlinedata Count]: unrecognized selector sent to instance 0x161f0e00

* Terminating app due to uncaught Exception 'Nsinvalidargumentexception', Reason: '-[_Nsinlinedata Count]: unrecognized selector sent to instance 0x161f0e00' * First throw call stack: (0x22f10f87 0x3066fc77 0x22f1637d 0x22f14259 0x22e45d68 0x4329d 0x1c7b1 0x1b7ad3 0x1b7abf 0x1bb51b 0x22ed6e61 0x22ed5581 0x22e22db1 0x22e22bc3 0x2a1ad051 0x263edf01 0x3b0e5 0x30c0baaf) libc++Abi.dylib: terminating with uncaught Exception of type Nsexception

  • 1

    This exception means that you are calling some method that does not exist in the object. Maybe the data will look different or not as you expect and there is no treatment for it. Use breakpoints to reach the error line and facilitate the exact location of this error.

  • Yes I found the error, it was because I was coding the receipt, and in fact it was not necessary! I just found it an instability of Afnetworking, which worked one way with the local comic book, and had another behavior with a cloned database, and hosted on the web.

  • just a @Tiagoamaral tip, add your found solution to a new answer and add it as the correct one for your problem. will help others to understand better

1 answer

0


Yes I found the error, it was because I was coding the receipt, and in fact it was not necessary! I just found it an instability of Afnetworking, which worked one way with the local comic book, and had another behavior with a cloned database, and hosted on the web.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.