Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issues with coordinates save JSONObject["address"] not found #436

Closed
tillkuhn opened this issue Feb 1, 2023 · 0 comments
Closed

fix issues with coordinates save JSONObject["address"] not found #436

tillkuhn opened this issue Feb 1, 2023 · 0 comments

Comments

@tillkuhn
Copy link
Owner

tillkuhn commented Feb 1, 2023

Describe the bug
-15.2646156,-145.1163131.
error 500

Additional context
Add any other context about the problem here.

023-02-01 20:17:49Z DEBUG n.t.angkor.service.PlaceService : AreaCode pf or GeoAddress null empty, lookup geoPoint for [-145.1163131, -15.2646156]
2023-02-01 20:17:49Z  INFO n.t.angkor.service.GeoService   : Downloading geo info for Coordinates(lon=-145.1163131, lat=-15.2646156) from https://nominatim.openstreetmap.org status=200
2023-02-01 20:17:49Z  INFO n.t.angkor.service.GeoService   : Json: {"error":"Unable to geocode"}
2023-02-01 20:17:49Z ERROR .c.c.C.[.[.[.[dispatcherServlet]: Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.json.JSONException: JSONObject["address"] not found.] with root cause

org.json.JSONException: JSONObject["address"] not found.
	at org.json.JSONObject.get(JSONObject.java:471) ~[json-20160212.jar!/:na]
	at org.json.JSONObject.getJSONObject(JSONObject.java:636) ~[json-20160212.jar!/:na]
	at net.timafe.angkor.service.GeoService.mapToOSMPlaceSummary(GeoService.kt:101) ~[classes!/:na]
	at net.timafe.angkor.service.GeoService.reverseLookup(GeoService.kt:94) ~[classes!/:na]
	at net.timafe.angkor.service.GeoService.reverseLookupWithRateLimit(GeoService.kt:60) ~[classes!/:na]
	at net.timafe.angkor.service.AbstractLocationService.save(AbstractLocationService.kt:24) ~[classes!/:na]
	at net.timafe.angkor.service.PlaceService.save(PlaceService.kt:40) ~[classes!/:na]

@tillkuhn tillkuhn changed the title fix issues with coordinates save fix issues with coordinates save JSONObject["address"] not found Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant