Hi, we have been using the network api for a long time now to capture a list of observations with no decoded data - we use this to run a “backfill” operation using the audio recording and gr-satellites to decode the observations. This has been pretty successful and has run trouble free for a long time.
About a week ago it stopped working. The problem seems to be something to do with the api access to multiple pages of observations. We are running a request in the following form:
url = f’{NETWORK_BASE_URL}/api/observations/?ground_station=2433&start={start_time}&end={end_time}&page={page}’
We retrieve the observations using requests.get(), stepping through from page 1 by incrementing the value of {page} each time until we run out of pages (tested by the type of response to the request).
Since a week ago, this approach always retrieves the same page of up to 25 observations and fails to find any more pages so gets stuck in an endless loop. It is as though setting page={page} no longer works. How do we fix this?
So, you need to extract the "next" link from the header and use it for requesting the next page. In case you want to go to the previous one you use the "prev" link.