HD image broken today (2025-05-30)
Steps to reproduce:
- run
curl -s 'https://api.nasa.gov/planetary/apod?api_key=<your-key-here>&start_date=2025-05-30&end_date=2025-05-30' | jq '.[0].hdurl'
- open "https://apod.nasa.gov/apod/image/2505/Ma2025-5.jpg"
Expected: Ma2025-5.jpg should be an image
Actual: Ma2025-5.jpg is an HTML file 🤣
For anybody who needs a workaround, use https://github.com/vegerot/APODesktop/commit/bbdb61f10de2ea5b94f130dd82dfbaea10443c32
The hdurl entry seems to be periodically broken. I filled a bug issue in another case and thought this might be another instance of the it. So I put a comment about this in https://github.com/nasa/apod-api/issues/128 .
The hdurl entry seems to be periodically broken. I filled a bug issue in another case and thought this might be another instance of the it. So I put a comment about this in #128 .
Agreed, they should fix the responses. Until then, you can workaround it by doing something similar to https://github.com/vegerot/APODesktop/commit/bbdb61f10de2ea5b94f130dd82dfbaea10443c32