Page 4 of 5

Geolocation problem

Posted: Wed Apr 23, 2014 11:07 am
by Chris Ratcliffe

Thank you Maryna, I don't think my db id has changed... the server code matches it seems

Chris


Geolocation problem

Posted: Wed Apr 23, 2014 11:39 am
by Maryna Brodina

Did you delete DB with stored coordinates? Have you changed "customers" collection? Please ensure this server code line prevar dbId = "your database id";/pre contains actual data.


Geolocation problem

Posted: Wed Apr 23, 2014 5:39 pm
by Chris Ratcliffe

Hi Maryna,

I've checked, and the server code matches the database ID that is in the database.And it has the line you mention.

I've just run a test again in the 'getCustomersWithinRange' service and had the following error message:

{
"status":"400 Bad Request",
"url":"https://api.appery.io/rest/1/code/fee...",
"response":{
"code":"SCSX018",
"description":"Execution of the script has exceeded the allowed time and stopped"
}
}

Chris


Geolocation problem

Posted: Wed Apr 23, 2014 6:35 pm
by Kateryna Grynko

Hi Chris,

Please check if there is an infinite loop in your script code.


Geolocation problem

Posted: Wed Apr 23, 2014 7:19 pm
by Chris Ratcliffe

Hi Katya

I can't see one. Have you seen one that I need to remove?
Chris


Geolocation problem

Posted: Wed Apr 23, 2014 8:41 pm
by Kateryna Grynko

Hi Chris,

Please share this servercode script with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a - we'll take a look.


Geolocation problem

Posted: Wed Apr 23, 2014 9:48 pm
by Chris Ratcliffe

Thanks Katya, the app is shared :-)


Geolocation problem

Posted: Thu Apr 24, 2014 7:25 am
by Maryna Brodina

Hello!

Tou have shared app, not servercode. Could you also share servercode and post screenshot of "customers" collection?


Geolocation problem

Posted: Thu Apr 24, 2014 8:28 am
by Chris Ratcliffe

Hi Maryna, all shared now. Apologies, I couldn't find the share button earlier and thought it was the same as I'd already done!
Can you let me know what you mean by a "customers" collection please?
Cheers
Chris


Geolocation problem

Posted: Thu Apr 24, 2014 8:49 am
by Maryna Brodina

DB which id you use should contain "customers" collection with specific structure as it shown in here http://docs.appery.io/tutorials/build...

Please post screenshot of collection.