network-dev: observations/new API broken - 502 Bad Gateway
When trying to batch-schedule using the auto-scheduler in python it fails with an error code of 502 - Bad Gateway and instead of valid JSON an HTML response it returned.
Debug Log Output
ERROR: Malformed response (no valid JSON) from SatNOGS Network.
Request URL:
/api/observations/
Request headers:
{'User-Agent': 'python-requests/2.25.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Token {REDACTED}', 'Content-Length': '1064', 'Content-Type': 'application/json'}
Request body:
b'[{"ground_station": 338, "transmitter_uuid": "tJ7KvHwqyU7UxufWZzrYZ6", "start": "2024-03-29 13:16:47", "end": "2024-03-29 13:22:52"}, {"ground_station": 338, "transmitter_uuid": "s8jpdkUffam9RxRArizMQd", "start": "2024-03-29 13:23:47", "end": "2024-03-29 13:30:12"}, {"ground_station": 338, "transmitter_uuid": "WoaWzeKLVSn4dmV5BtEMQQ", "start": "2024-03-29 13:30:38", "end": "2024-03-29 13:36:25"}, {"ground_station": 338, "transmitter_uuid": "LyLQ3K5KTts6gJGQTVuSDP", "start": "2024-03-29 13:40:47", "end": "2024-03-29 13:47:17"}, {"ground_station": 338, "transmitter_uuid": "u2h8AaSR7ZJPreFgVDtcfP", "start": "2024-03-29 13:48:07", "end": "2024-03-29 13:51:51"}, {"ground_station": 338, "transmitter_uuid": "N7SGiqMhkHpjfjeGh42wvX", "start": "2024-03-29 13:55:10", "end": "2024-03-29 14:01:19"}, {"ground_station": 338, "transmitter_uuid": "iXwP5z3WSrJYoLviKuKRYL", "start": "2024-03-29 14:03:13", "end": "2024-03-29 14:06:50"}, {"ground_station": 338, "transmitter_uuid": "ZAKErADdWKpMiDjvKKhmmB", "start": "2024-03-29 14:14:31", "end": "2024-03-29 14:23:08"}]'
Response text:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>SatNOGS Network - Bad Gateway
</title>
</head>
<body style="background: black; color: white;display: flex;justify-content: center;align-content: space-around;align-items: center;flex-wrap: wrap;text-align: center;height: 100vh;">
<div style="width: 100%;display: flex;justify-content: center;">
<img src="/static/img/satnogs-network-logo.png" alt="SatNOGS Network Logo" style="display:block;">
</div>
<div style="width: 100%;display: flex;justify-content: center;flex-wrap: wrap;">
<h1 style="width: 100%;"> Maintenance in progress!
</h1>
<h3 style="width: 55%;">
We will be back soon! Thank you for your patience.
</h3>
<h3 style="width: 55%;">
For more info feel free to
<a href="https://community.libre.space">contact us</a>.
</h3>
</div>
<div style="width: 100%;display: flex;justify-content: center;">
<p>502 - Bad Gateway
</p>
</div>
</body>
</html>
Edited by Fabian P. Schmidt