Page 1 of 1

Works when testing service - InvalidArgument when testing app

Posted: Thu Feb 13, 2014 2:26 pm
by Chris A

Hi,

Whenever I test this service in the editor it works fine, but when I test the app (or simply the link below) for whatever reason $distance is not recognized as a valid argument.

Query (I had to hide my KEY):
http://api.v3.factual.com/t/places-sg...

Result:
{version:3, status:error, error_type:InvalidArgument,...}
error_type: "InvalidArgument"
message: "Parameter 'sort' references unknown field $distance. Please see documentation at http://developer.factual.com"
status: "error"
version: 3

If I remove $distance (i.e. leave sort blank) it works fine.

Any ideas?


Works when testing service - InvalidArgument when testing app

Posted: Thu Feb 13, 2014 3:46 pm
by Maryna Brodina

Hello! Please post service settings screenshot.


Works when testing service - InvalidArgument when testing app

Posted: Fri Feb 14, 2014 12:22 am
by Chris A

Works when testing service - InvalidArgument when testing app

Posted: Fri Feb 14, 2014 3:39 am
by Chris A

Never mind, found the culprit: I was malforming the coordinates.


Works when testing service - InvalidArgument when testing app

Posted: Fri Feb 14, 2014 10:54 am
by Maryna Brodina

Ok, thank you for update! Glad it's working!