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

http.head() can return empty unhandled exception #36

Closed
davenotik opened this issue Feb 23, 2016 · 2 comments
Closed

http.head() can return empty unhandled exception #36

davenotik opened this issue Feb 23, 2016 · 2 comments

Comments

@davenotik
Copy link

var response = await http.head('http://v.youku.com/v_show/id_XOTUwODY0NDky.html').catchError(print);
        print(response);

The error is empty. Remove the catchError and it reports as Unhandled Exception:.

@davenotik
Copy link
Author

That's the line:

throw new ClientException(error.message, error.uri);

@nex3
Copy link
Member

nex3 commented Feb 23, 2016

It looks like the error message will only be empty if an empty error is coming from dart:io. That sounds like a dart:io bug.

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