nasa / apod-api

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

2018-10-07 date is not working. #8

Closed hemangshah closed 4 years ago

hemangshah commented 6 years ago

https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY&date=2018-10-07

Getting below error:

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

because of this, I can't even use the API request with start_date and end_date contains above date.

For example this API calls will also not work:

https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY&start_date=2018-10-07&end_date=2018-10-08

https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY&start_date=2018-10-01&end_date=2018-10-08

Please fix 7th October. Looking forward to hearing back from you.

samyanez94 commented 6 years ago

+1

I'm experiencing the same issue.

lusiaold commented 6 years ago

If anyone needs a list of APODs (eg. from today to 20 days ago), I made a little API that doesn't throw 500 error when it contains 07.10.2018 APOD. If anyone is interested, here's the link: https://apod-wrapper.herokuapp.com/help

samyanez94 commented 6 years ago

This work as a temporary solution. You are the MVP. Thanks @PawelPleskaczynski

lusiaold commented 6 years ago

Thanks @samyanez94 :) I will use it for my APOD client as well until NASA (hopefully) solves the problem.

hemangshah commented 6 years ago

@PawelPleskaczynski , how many requests one can make on that helper?

lusiaold commented 6 years ago

Well, I haven't tried it yet, but according to this website, I'm limited to 4500 requests/h

lusiaold commented 6 years ago

I forked the repository, fixed the problem and made a pull request. I tested it locally and it doesn't throw any errors when an APOD isn't an image or video.

@hemangshah @samyanez94

hemangshah commented 6 years ago

@PawelPleskaczynski, awesome! Now we'll have to wait until Nasa Devs will approve your PR.

hemangshah commented 6 years ago

Well, I haven't tried it yet, but according to this website, I'm limited to 4500 requests/h

Awesome! Heroku wins but NASA APOD API only allows 1000/h ;-)

lusiaold commented 6 years ago

Yeah, let's hope they'll approve it! It's my first PR ever in my life so I'm pretty excited 😅

eringrand commented 4 years ago

Hello - is there an update on this issue?

JustinGOSSES commented 4 years ago

This problem has now been fixed.