458924 (1) [Avatar] Offline
Pls did anyone experience this 304 error in the git terminal "GET /api/locations?lng=-0.79&lat=51.3&maxDistance=200000000 304 32.331 ms - -"while trying to query the database.
I used the Angular $HTTP service to make the request to the API as suggested in the book but the geonear function returns an empty array []. I have being on it for some time now.

Pls can anyone tell me how to fix this error? Tnx
simon.holmes (134) [Avatar] Offline

What browser are you using? IE has a bad habit of caching Angular $HTTP requests.

In the Node,.js code for the API route try putting in a console log or two to see where the data falls over. Does the API route work if you call it directly, either in the browser or PostMan?