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

deployed from scratch - no items listed #5

Open
ldanicel opened this issue Jul 19, 2023 · 1 comment
Open

deployed from scratch - no items listed #5

ldanicel opened this issue Jul 19, 2023 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@ldanicel
Copy link

ldanicel commented Jul 19, 2023

I've just deployed this on a macbook M1 running the official docker.app
The container logs show no error and present the db and python app started properly.

http://localhost:8080/ displays an empty map
http://localhost:8080/api/local/items returns a json with proper data by the way it looks.
http://localhost:8080/api/db/latest returns an empty json
http://localhost:8080/api/local/devices returns http 500:

Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/app/app.py", line 29, in api_local_get_devices
return web.json_response(await app["devices"].get())
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/utils/find_my.py", line 25, in get
return self._parse_data(data)
^^^^^^^^^^^^^^^^^^^^^^
File "/app/utils/find_my.py", line 43, in _parse_data
row.address = i.address.mapItemFullAddress
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'mapItemFullAddress'

@iakat
Copy link
Collaborator

iakat commented Jul 19, 2023

Seems like the format might have changed?

Would you be willing to work on a pull request to fix this? I can then review it.

@iakat iakat added bug Something isn't working help wanted Extra attention is needed labels Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants