dchristl / macless-haystack

Create your own AirTag with OpenHaystack, but without the need to own an Apple device
GNU General Public License v3.0
407 stars 66 forks source link

Anisette Updated Errors #74

Closed GameEnder closed 6 months ago

GameEnder commented 7 months ago

Looks like Anisette has a update and is now giving a not expected response for location request.

Unknown error occured Expecting value: line 1 column 1 (char 0)

Traceback (most recent call last):

  File "/app/endpoint/mh_endpoint.py", line 103, in do_POST

    result = json.loads(r.content.decode())

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/local/lib/python3.12/json/__init__.py", line 346, in loads

    return _default_decoder.decode(s)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/local/lib/python3.12/json/decoder.py", line 337, in decode

    obj, end = self.raw_decode(s, idx=_w(s, 0).end())

               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/local/lib/python3.12/json/decoder.py", line 355, in raw_decode

    raise JSONDecodeError("Expecting value", s, err.value) from None

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

172.20.0.1 - - [19/Apr/2024 20:33:14] "POST /haystack HTTP/1.1" 501 -
dchristl commented 6 months ago

Hello @GameEnder ,

if you have updated teh Anisette server on a formerly running system you have to reregister, described here

GameEnder commented 6 months ago

I have tried and it get stuck at "Trying to register new device."

Ended up just remaking the container from scratch and now it works.

dchristl commented 6 months ago

OK, that would have been my next suggestion. It's great that it's working now.