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

Handle alternate server errors #82

Closed
Byron opened this issue Apr 24, 2015 · 1 comment
Closed

Handle alternate server errors #82

Byron opened this issue Apr 24, 2015 · 1 comment
Assignees

Comments

@Byron
Copy link
Owner

Byron commented Apr 24, 2015

They look like this:

{
 "error": {
  "errors": [
   {
    "domain": "youtube.parameter",
    "reason": "missingRequiredParameter",
    "message": "No filter selected.",
    "locationType": "parameter",
    "location": ""
   }
  ],
  "code": 400,
  "message": "No filter selected."
 }
}

We should try all known error types when decoding an error, in order to provide better error messages

How to reproduce:

./gen/youtube3-cli/target/debug/youtube3 --debug videos list snippet -p max-results=10 2>y.out
@Byron Byron added this to the v0.2 - simple commandline tools milestone Apr 24, 2015
@Byron Byron self-assigned this Apr 25, 2015
@Byron
Copy link
Owner Author

Byron commented Apr 25, 2015

You can watch the development stream on youtube.

@Byron Byron closed this as completed in a328942 Apr 25, 2015
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

1 participant