kizniche / ttn-tracker

Download GPS data transmitted to The Things Network for live display on a map
https://kylegabriel.com/projects/2019/04/lorawan-tracker-and-mapper.html
62 stars 17 forks source link

Bad Request issue #21

Closed earebano01 closed 6 months ago

earebano01 commented 6 months ago

Hi,

I managed to almost make it work, the map appears but i can't see my device on the map even though im sure that my API keys are correct on the config.py, when i checked the logs :

2024-02-25 04:59:22,683 https://nam1.cloud.thethings.network/api/v3/as/applications/my-application-id/devices/my-device-id/packages/storage/uplink_message?order=-received_at&type=uplink_message?last=15s

2024-02-25 04:59:23,234 Bad Request

on the web browser, the error appears as : {"error":{"code":16, "message":"error:pkg/rpcmetadata:unauthenticated (the context is not authenticated)", "details":[{"@type":"type.googleapis.com/ttn.lorawan.v3.ErrorDetails", "namespace":"pkg/rpcmetadata", "name":"unauthenticated", "message_format":"the context is not authenticated", "correlation_id":"db5d31c62fc241ecade21edbe2ee967a", "code":16}]}}

this is the error message that i get, i suppose that the app_key i put on the config.py is my end device AppKey from TTN? if so, do you have any more ideas what causes this? i checked the configuration of app.py and it seems correct to me as well, im totally blocked as to where else to check to make it work, i appreciate any help and thank you in advanced.