Error 401 - one possible solution

Hi,

Probably you’ve seen this several times. Eventually I managed to find it out.
My raspberrypi was not able to connect, nor I would see it online.
curl to the api server returned results and the raspberry had internet.

fev 05 15:20:22 raspberrypi satnogs-client[522]: 2019-02-05 15:20:22,830 - satnogsclient - INFO - [LD] Downlink thread waiting for first downlink packet
fev 05 15:21:22 raspberrypi satnogs-client[522]: 2019-02-05 15:21:22,822 - apscheduler.executors.default - INFO - Running job “get_jobs (trigger: interval[0:01:00], next run at: 2019-02-05 16:22:22 UTC)” (scheduled at 2019-02-05 16:21:22.788342+00:00)
fev 05 15:21:23 raspberrypi satnogs-client[522]: 2019-02-05 15:21:23,376 - apscheduler.executors.default - ERROR - Job “get_jobs (trigger: interval[0:01:00], next run at: 2019-02-05 16:22:22 UTC)” raised an exception
(…)
fev 05 15:21:23 raspberrypi satnogs-client[522]: Exception: Status code: 401 on request: https://network.satnogs.org/api/jobs/

The problem was the API token. Apparently there’s one in DB and another in Network websites.
Used the one from Network and that was it.

Cheers,
Pedro

2 Likes