-
-
Notifications
You must be signed in to change notification settings - Fork 256
Open
Labels
type: bugSomething isn't workingSomething isn't working
Description
Description
API for NASA seems to be offline/have disappeared.
Steps to Reproduce
Use any of the commands under .space.
Expected Behaviour
Nice pictures from space.
Actual Behaviour
Not nice traceback in logs (either Heroku 404s or 504s).
sir-lancebot-8dd9c4579-8cntf sir-lancebot 2025-11-10 00:21:12 | ERROR | bot.exts.core.error_handler | Unhandled command error: 504, message='Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8', url='https://api.nasa.gov/planetary/apod?api_key=[redacted]'
sir-lancebot-8dd9c4579-8cntf sir-lancebot Traceback (most recent call last):
sir-lancebot-8dd9c4579-8cntf sir-lancebot File "/build/.venv/lib/python3.13/site-packages/discord/ext/commands/core.py", line 266, in wrapped
sir-lancebot-8dd9c4579-8cntf sir-lancebot ret = await coro(*args, **kwargs)
sir-lancebot-8dd9c4579-8cntf sir-lancebot ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sir-lancebot-8dd9c4579-8cntf sir-lancebot File "/bot/bot/exts/fun/space.py", line 78, in apod
sir-lancebot-8dd9c4579-8cntf sir-lancebot result = await self.fetch_from_nasa("planetary/apod", params)
sir-lancebot-8dd9c4579-8cntf sir-lancebot ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sir-lancebot-8dd9c4579-8cntf sir-lancebot File "/bot/bot/exts/fun/space.py", line 218, in fetch_from_nasa
sir-lancebot-8dd9c4579-8cntf sir-lancebot return await resp.json()
sir-lancebot-8dd9c4579-8cntf sir-lancebot ^^^^^^^^^^^^^^^^^
sir-lancebot-8dd9c4579-8cntf sir-lancebot File "/build/.venv/lib/python3.13/site-packages/aiohttp/client_reqrep.py", line 756, in json
sir-lancebot-8dd9c4579-8cntf sir-lancebot raise ContentTypeError(
sir-lancebot-8dd9c4579-8cntf sir-lancebot ...<7 lines>...
sir-lancebot-8dd9c4579-8cntf sir-lancebot )
sir-lancebot-8dd9c4579-8cntf sir-lancebot aiohttp.client_exceptions.ContentTypeError: 504, message='Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8', url='https://api.nasa.gov/planetary/apod?api_key=[redacted]'Known Impacted Platforms
- Web
- Desktop
- Android App
- iOS App
Possible Solutions
Confirm this API still exists or update to new methods of calling.
Would you like to implement a fix?
Note: For high-priority or critical bugs, fixes may be implemented by staff.
- I'd like to implement the bug fix
- Anyone can implement the bug fix
Metadata
Metadata
Assignees
Labels
type: bugSomething isn't workingSomething isn't working