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

infinity from random endpoint causes crash #6

Open
rosstimothy opened this issue Oct 5, 2019 · 1 comment
Open

infinity from random endpoint causes crash #6

rosstimothy opened this issue Oct 5, 2019 · 1 comment

Comments

@rosstimothy
Copy link

Random can return infinity, which has a null value for the number field, see json response below

{
  "text": "-Infinity is negative infinity.",
  "number": null,
  "found": true,
  "type": "trivia"
}
@ResoDev
Copy link
Collaborator

ResoDev commented Oct 11, 2019

Oh, at this point, I think we can just pretend that this response doesn't occur since this is just an example app... 😅

Otherwise, you'd put appropriate logic into the InputConverter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants