nasa / apod-api

Astronomy Picture of the Day API service
Apache License 2.0
829 stars 161 forks source link

Internal Server Error with thumbs=true #62

Open vikey89 opened 3 years ago

vikey89 commented 3 years ago

The following request is producing an Internal Server Error:

Request: https://api.nasa.gov/planetary/apod?api_key=[APY_KEY]&start_date=2020-09-12&end_date=2020-09-21&thumbs=true

Response:

{
  "code": 500,
  "msg": "Internal Service Error",
  "service_version": "v1"
}

Removing the 'thumbs=true' query parameter solves it

ghost commented 3 years ago

Same here. https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY&date=&concept_tags=True&count=100&start_date=&end_date=&thumbs=true 500 (INTERNAL SERVER ERROR)


How about always return thumbnail_url, undefined if media_type == "image"?


My use case, see line 58 image

HelixSpiral commented 2 years ago

@vikey89 is this still an issue? I'm attempting to reproduce and cannot get any error using &thumbs=true.

HelixSpiral commented 2 years ago

@JustinGOSSES I've been including &thumbs=true by default in an application I'm writing and I can't reproduce this. It's likely been fixed and this issue can be closed.

Link to the service that isn't erroring: https://github.com/HelixSpiral/apod-to-mqtt/blob/master/main.go#L34

KevinScottBatchelor commented 2 years ago

I can't seem to find it in the documentation here anywhere, but when I include the count parameter and thumbs=true parameter, I am not getting thumbnail_url at all. Is there a way around this?

image