nasa / apod-api

Astronomy Picture of the Day API service
Apache License 2.0
834 stars 162 forks source link

Thumbs Parameter | 400 Error #32

Closed itsHall closed 4 years ago

itsHall commented 4 years ago

Today's request returns a 400 error when using the thumbs parameter:

https://api.nasa.gov/planetary/apod?api_key={api_key}&date=2020-01-21&hd=true&thumbs=true

Full Message:

{"code":400,"msg":"Bad Request: incorrect field passed. Allowed request fields for apod method are 'concept_tags', 'date', 'hd', 'count', 'start_date', 'end_date'","service_version":"v1"}

The documentation says the parameter is ignored if not a video. This is a video, but I'm guessing the way the url was entered as an embed (https://www.youtube.com/embed/hgzGET6owYk?rel=0) caused the thumbnail creation to break?

qalandarov commented 4 years ago

@itsHall, you're exposing your API key and the thumbnail is coming fine now

itsHall commented 4 years ago

@qalandarov Whoops, thanks!

qalandarov commented 4 years ago

@itsHall, you only edited the text, but the link still has your key 🙂

itsHall commented 4 years ago

@qalandarov you're a hero! haha, thank you 👍🏻