Auto-scheduler Error: Invalid token header

Just installed Auto Scheduler but cannot schedule more than a single-pass as error given … ‘detail’: Invalid token header. No credentials provided.
I’ve trawled the software coding but can find no obvious textual error or missing lines.
I’ve included the last few lines of the log below.
Can anyone please advise the possible cause and fix?
Thanks in advance.
Sep 27 14:16:31 satnogs python[3776]: 2021-09-27 14:16:31,534 - root - INFO - Finding all passes for 179 satellites:
Sep 27 14:16:38 satnogs python[3776]: [2.8K blob data]
Sep 27 14:16:38 satnogs python[3776]: 2021-09-27 14:16:38,118 - auto_scheduler.satnogs_client - INFO - Requesting scheduled passes for ground station 2122
Sep 27 14:16:38 satnogs python[3776]: 2021-09-27 14:16:38,493 - auto_scheduler.satnogs_client - INFO - Scheduled passes for ground station 2122 retrieved!
Sep 27 14:16:38 satnogs python[3776]: 2021-09-27 14:16:38,500 - root - INFO - Found 0 scheduled passes between 2021-09-27 14:24:31 and 2021-09-27 15:36:31 on ground station 2122
Sep 27 14:16:38 satnogs python[3776]: 2021-09-27 14:16:38,509 - root - INFO - 5 passes selected out of 61, 3485 s out of 4690 s at 74.307% efficiency
Sep 27 14:16:38 satnogs python[3776]: 2021-09-27 14:16:38,509 - root - INFO - GS | Sch | NORAD | Start time | End time | Duration | El | Priority | Transmitter UUID | Mode | Satellite name
Sep 27 14:16:38 satnogs python[3776]: 2021-09-27 14:16:38,510 - root - INFO - 2122 | N | 14781 | 2021-09-27T14:27:05 | 2021-09-27T14:36:22 | 0:09:17 | 8 | 0.032000 | aBPWui23BqUhVc62nySNuQ | AFSK | UOSAT 2 (UO-11)
Sep 27 14:16:38 satnogs python[3776]: 2021-09-27 14:16:38,510 - root - INFO - 2122 | N | 15427 | 2021-09-27T14:49:18 | 2021-09-27T15:05:18 | 0:15:59 | 63 | 0.427000 | F8aCi2iTe83XT9TnBwrth4 | BPSK | NOAA 9
Sep 27 14:16:38 satnogs python[3776]: 2021-09-27 14:16:38,511 - root - INFO - 2122 | N | 39444 | 2021-09-27T15:06:09 | 2021-09-27T15:19:23 | 0:13:14 | 42 | 0.336000 | Pt4MFHSC8UFHu3aTQTLz9K | BPSK | FUNCUBE-1 (AO-73)
Sep 27 14:16:38 satnogs python[3776]: 2021-09-27 14:16:38,511 - root - INFO - 2122 | N | 40907 | 2021-09-27T15:23:27 | 2021-09-27T15:33:01 | 0:09:33 | 11 | 0.100222 | V76m6YW7nVsTrgCboMVHEb | CW | XW-2D
Sep 27 14:16:38 satnogs python[3776]: 2021-09-27 14:16:38,512 - root - INFO - 2122 | N | 40911 | 2021-09-27T15:35:15 | 2021-09-27T15:45:15 | 0:10:00 | 13 | 0.119889 | HReEBxwoWJDuuvF5CfiyET | CW | XW-2B
Sep 27 14:16:38 satnogs python[3776]: 2021-09-27 14:16:38,512 - root - INFO - Scheduling all unscheduled passes listed above.
Sep 27 14:16:38 satnogs python[3776]: 2021-09-27 14:16:38,739 - auto_scheduler.satnogs_client - ERROR - Failed to batch-schedule the passes. Reason: {‘detail’: ‘Invalid token header. No credentials provided.’}
Sep 27 14:16:38 satnogs python[3776]: 2021-09-27 14:16:38,740 - auto_scheduler.satnogs_client - ERROR - Fall-back to single-pass scheduling.
Sep 27 14:16:38 satnogs python[3776]: 2021-09-27 14:16:38,980 - auto_scheduler.satnogs_client - ERROR - Failed to schedule the pass at 2021-09-27 14:36:22. Reason: {‘detail’: ‘Invalid token header. No credentials provided.’}
Sep 27 14:16:39 satnogs python[3776]: 2021-09-27 14:16:39,197 - auto_scheduler.satnogs_client - ERROR - Failed to schedule the pass at 2021-09-27 15:05:18. Reason: {‘detail’: ‘Invalid token header. No credentials provided.’}
Sep 27 14:16:39 satnogs python[3776]: 2021-09-27 14:16:39,409 - auto_scheduler.satnogs_client - ERROR - Failed to schedule the pass at 2021-09-27 15:19:23. Reason: {‘detail’: ‘Invalid token header. No credentials provided.’}
Sep 27 14:16:39 satnogs python[3776]: 2021-09-27 14:16:39,626 - auto_scheduler.satnogs_client - ERROR - Failed to schedule the pass at 2021-09-27 15:33:01. Reason: {‘detail’: ‘Invalid token header. No credentials provided.’}
lines 1-53/57 94%

@m0roj this error says that you haven’t included a header with the API key in the headers of the request.

Just in case, have you followed the configuration step in librespacefoundation / SatNOGS / satnogs-auto-scheduler · GitLab? If yes please make sure that the API key in .env file is the same as the one you see in SatNOGS Network.

Thank you @fredy - problem solved.
Cause: a couple of code typos.
Scheduler working fine now, but a better LNA and BPF needed for VHF data decodes.
Any particular recommendations please?

1 Like