awazgyawali / native_http

Flutter package that uses OkHttp on android and URLSession on iOS to do network calls.
MIT License
3 stars 6 forks source link

iPhone App crash (Post Param boolean body param ) #1

Open sumeetK opened 4 years ago

sumeetK commented 4 years ago

iPhone App crash (Post Param boolean body param )

Could not cast value of type '__NSCFBoolean' (0x7fff87c51218) to 'NSString' (0x7fff87d0eee8).

2020-06-18 18:24:56.634200+0530 Runner[38703:3010776] Could not cast value of type '__NSCFBoolean' (0x7fff87c51218) to 'NSString' (0x7fff87d0eee8).

Screenshot 2020-06-18 at 10 16 42 PM
awazgyawali commented 4 years ago

Please send the body as a full String: String map, if you have double or int, do .toString() to the value. Edit Seems like you are adding Bool value on map

awazgyawali commented 4 years ago

I hope you have figure it out.

sumeetK commented 4 years ago

I have created a Pull request, Please review and merge