WebException: The remote server returned an error: (400) Bad Request.

Hello !

I i type manually the two doubles all works fine. But not if the data comes from a class.

I use this link for reverse Geo Request :


Website Error:

{“error”:{“code”:400,“message”:“Floating-point number expected for parameter ‘lat’”}}

My seperator in the double have sometimes in Debugging a dot and other a comma. (Don´t know why)

Is it possible to request the doubles as a string ?

I’d suggest assigning the whole thing


to a string variable that you can examine before actually making the call. That might help you to debug it.