apod-api icon indicating copy to clipboard operation
apod-api copied to clipboard

HD image broken today (2025-05-30)

Open vegerot opened this issue 7 months ago • 3 comments

Steps to reproduce:

  1. 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'
  1. 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 🤣

vegerot avatar May 30 '25 18:05 vegerot

For anybody who needs a workaround, use https://github.com/vegerot/APODesktop/commit/bbdb61f10de2ea5b94f130dd82dfbaea10443c32

vegerot avatar May 30 '25 19:05 vegerot

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 .

rollingbits avatar Jun 10 '25 18:06 rollingbits

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

vegerot avatar Jun 10 '25 20:06 vegerot