Skip to content
Advertisement

Getting NSDebugDescription=Invalid value around character 0. When posting request using PHP with Swift

I am getting an error when i try to post my data through php with swift that says Domain=NSCocoaErrorDomain Code=3840 "Invalid value around character 0." UserInfo={NSDebugDescription=Invalid value around character 0.}

What does this error mean? I resolved other issues related to using PHP with swift but i am still getting this error.

How can i fix this error?

here is my code:

JavaScript

Advertisement

Answer

could you try the following code, and tell us what you get:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement