Internal Server Error when making a GeoQuery

0 votes

I have a collection that is supposed to have geo properties. I have only one record in it now but the location property is not set. I tried to run a geoquery against it.

 Setting value :jsonQuery : [{"lng":-74.00497299999999,"maxDistance":20,"lat":40.715353,"operator":"$near"}]

 QueryString is ?jsonQuery=%5B%7B%22lng%22%3A-74.00497299999999%2C%22maxDistance%22%3A20%2C%22lat%22%3A40.715353%2C%22operator%22%3A%22%24near%22%7D%5D&

 Requested URL is https://api.shephertz.com/cloud/1.0/storage/findDocsBylocation/dbName/ZC1/collectionName/Accident?jsonQuery=%5B%7B%22lng%22%3A-74.00497299999999%2C%22maxDistance%22%3A20%2C%22lat%22%3A40.715353%2C%22operator%22%3A%22%24near%22%7D%5D&

 Setting Header value : signature : 7EB8mhGS%2Bgkjz1hmmIdbhgRv%2F%2Fc%3D

 Setting Header value : version : 1.0

 Setting Header value : SDKName : Java

 Setting Header value : timeStamp : 2015-02-28T17:05:46.589Z

 Setting Header value : apiKey : xxxxxxxxxx654b426686ecabb6ec09206fc18d6d05b22880919c44

Finally

 

com.shephertz.app42.paas.sdk.java.App42Exception: {"app42Fault":{"httpErrorCode":500,"appErrorCode":1500,"message":"Internal Server Error","details":"Internal Server Error. Please try again"}}

 
Is this because there is no document with a location property set or because the only document did not have the location property set well? If the property is not set, does that mean the query should fail?
asked Feb 28, 2015 in App42 Cloud API-BaaS by jamesagada (20 points)

1 Answer

0 votes

Hello James,

 
Could you please share the SDK version in which you are working on? it will help us to replicate the same at our end. Also, please share the code snippet in which you are working on. 
 
Thanks,
Himanshu Sharma
answered Mar 1, 2015 by hs00105 (2,005 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...