Chris Ratcliffe
Posts: 0
Joined: Sun Apr 13, 2014 9:03 pm

Geolocation problem

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

Chris

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Geolocation problem

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.

Chris Ratcliffe
Posts: 0
Joined: Sun Apr 13, 2014 9:03 pm

Geolocation problem

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Geolocation problem

Hi Chris,

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

Chris Ratcliffe
Posts: 0
Joined: Sun Apr 13, 2014 9:03 pm

Geolocation problem

Hi Katya

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Geolocation problem

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.

Chris Ratcliffe
Posts: 0
Joined: Sun Apr 13, 2014 9:03 pm

Geolocation problem

Thanks Katya, the app is shared :-)

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Geolocation problem

Hello!

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

Chris Ratcliffe
Posts: 0
Joined: Sun Apr 13, 2014 9:03 pm

Geolocation problem

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Geolocation problem

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.

Return to “Issues”