Skip to content

A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.

fix(radio): keep the || 500 fallback for a missing mirror status

Said Turksever3533b323b082
diff --git a/server/providers/radio/transport.js b/server/providers/radio/transport.js
index c9922bb2f..c4b7f2b5b 100644
--- a/server/providers/radio/transport.js
+++ b/server/providers/radio/transport.js
@@ -130,7 +130,7 @@ export function fetchPinnedRadioResponse(url, options, addresses) {
// Nothing thrown here may escape: this callback runs outside the
// promise, so an exception would be uncaught and crash the server.
try {
- const status = response.statusCode;
+ const status = response.statusCode || 500;
// A `Response` only represents statuses up to 599; Node never hands
// this callback a 1xx.
if (status > 599)