Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APOD - always return image if random parameter is supplied #18

Open
mikelax opened this issue Sep 27, 2016 · 0 comments
Open

APOD - always return image if random parameter is supplied #18

mikelax opened this issue Sep 27, 2016 · 0 comments
Labels

Comments

@mikelax
Copy link
Owner

mikelax commented Sep 27, 2016

As a user, if I supply the random parameter to the apod command, I expect a valid response to be returned. We need to handle the use case where the user requests random and it just so happens that an invalid date is selected.

In this case the command should be run again with a new random date until a valid response is returned.

example:
apod random - generates date of: 1997-09-06
NASA API returns 500 for given date. https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY&date=1997-09-06

@mikelax mikelax added the Hacktoberfest Hacktoberfest label Oct 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant