Geolocation network error - HTTP 301 Moved Permanently

mmuccilloa year ago

I am using "opencellid" to do "geolocation" and I get the following error, what could be the problem.
Thank you so much!!

2023-09-13 13:52:03  INFO: [T05639b1a: gl200 < 186.12.17.48] 2b524553503a475447534d2c4343303130312c3836363833333034363532323739302c474c3532304d2c4652492c303732322c303033342c303043392c303832322c33312c2c303732322c303331302c303442302c303542302c31342c2c2c2c2c2c2c2c2c2c2c2c2c2c2c2c2c2c2c2c2c2c2c2c2c2c303732322c303331302c303442302c353344302c32362c2c32303233303931333139353133342c3031323724
2023-09-13 13:52:03  WARN: Geolocation network error - HTTP 301 Moved Permanently - RedirectionException (...)
Anton Tananaeva year ago

It looks like you're using some redirect URL. Put the correct URL in the config.

mmuccilloa year ago

These are the configuration lines used.

    <entry key='geolocation.enable'>true</entry>
    <entry key='geolocation.type'>opencellid</entry>
    <entry key='geolocation.key'>xxxxxxxxxxxxxxxxxxxxxxxxxxx</entry>
    <entry key='geolocation.processInvalidPositions'>true</entry>
    <entry key='filter.zero'>true</entry>

Could you give me the URL for "opencellid" queries to do a test.
Thank you very much Anton!!

Anton Tananaeva year ago
MKa year ago

I had the same error. I also had in traccar.xml:

<entry key='geolocation.url'>http://opencellid.org/cell/get</entry>

I've changed URL to HTTPS:

<entry key='geolocation.url'>https://opencellid.org/cell/get</entry>

And now I can read in logs:

WARN: Geolocation network error - Cell not found (1) - GeolocationException (OpenCellIdGeolocationProvider:59 < *:46 < ...)

I don't know if the question format is wrong or really "cell not found".

MKa year ago

Before this change my OpenCelliD Dashboard reported 0 requests, now number of "failed" requests grows.