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

Internal Server Error with thumbs=true

Open vikey89 opened this issue 3 years ago • 4 comments

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

vikey89 avatar Apr 30 '21 16:04 vikey89

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

ghost avatar May 03 '21 20:05 ghost

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

HelixSpiral avatar Feb 11 '22 22:02 HelixSpiral

@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

HelixSpiral avatar Mar 01 '22 01:03 HelixSpiral

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

KevinScottBatchelor avatar Oct 05 '22 19:10 KevinScottBatchelor