Skip to content

Backend broken? #6

@julienschmidt

Description

@julienschmidt

Lookups on my smartphone fail with java.io.FileNotFoundException:

04-16 00:48:06.870  7673 14649 D NominatimGeocoderBackend: Requesting http://open.mapquestapi.com/nominatim/v1/reverse?format=json&accept-language=en&lat=39.106944&lon=-76.743056
04-16 00:48:06.981  7673 14649 W NominatimGeocoderBackend: java.io.FileNotFoundException: http://open.mapquestapi.com/nominatim/v1/reverse?format=json&accept-language=en&lat=39.106944&lon=-76.743056
04-16 00:48:06.981  7673 14649 W NominatimGeocoderBackend:  at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:238)
04-16 00:48:06.981  7673 14649 W NominatimGeocoderBackend:  at org.microg.nlp.backend.nominatim.BackendService$AsyncGetRequest.run(BackendService.java:189)
04-16 00:48:06.981  7673  7690 W NominatimGeocoderBackend: java.lang.NullPointerException: Attempt to get length of null array
04-16 00:48:06.981  7673  7690 W NominatimGeocoderBackend:  at java.lang.StringFactory.newStringFromBytes(StringFactory.java:45)
04-16 00:48:06.981  7673  7690 W NominatimGeocoderBackend:  at org.microg.nlp.backend.nominatim.BackendService$AsyncGetRequest.retrieveString(BackendService.java:220)
04-16 00:48:06.981  7673  7690 W NominatimGeocoderBackend:  at org.microg.nlp.backend.nominatim.BackendService.getFromLocation(BackendService.java:57)
04-16 00:48:06.981  7673  7690 W NominatimGeocoderBackend:  at org.microg.nlp.api.GeocoderBackendService$Backend.getFromLocation(GeocoderBackendService.java:72)
04-16 00:48:06.981  7673  7690 W NominatimGeocoderBackend:  at org.microg.nlp.api.GeocoderBackend$Stub.onTransact(GeocoderBackend.java:63)
04-16 00:48:06.981  7673  7690 W NominatimGeocoderBackend:  at android.os.Binder.execTransact(Binder.java:453)
04-16 00:48:06.983 13584 13606 E ReverseGeocoder: Fuuuuu
04-16 00:48:06.983 13584 13606 E ReverseGeocoder: java.io.IOException: no result
04-16 00:48:06.983 13584 13606 E ReverseGeocoder:   at android.location.Geocoder.getFromLocation(Geocoder.java:136)
...

If I curl the same URL, the response is The AppKey submitted with this request is invalid.. If the backend is not already sending an API key, than this is probably the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions