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

Argument Type Error in HttpClient #105

Closed
wanclem opened this issue Apr 3, 2021 · 2 comments
Closed

Argument Type Error in HttpClient #105

wanclem opened this issue Apr 3, 2021 · 2 comments

Comments

@wanclem
Copy link

wanclem commented Apr 3, 2021

Hello, I am trying to use this library but I am currently having an argument type error. I noticed in your code under the utils package that your doGet function is as below:

 @protected
  Future<Response> doGet(String url, {Map<String, dynamic> headers}) {
    return httpClient.get(url, headers: headers);
  }

Shouldn't this be ?

 @protected
  Future<Response> doGet(String url, {Map<String, dynamic> headers}) {
    return httpClient.get(Uri.parse(url), headers: headers); //Uri.parse(url)?
  }

Is there a way to work around this as this is critical to my current project?

Thanks

@lejard-h
Copy link
Owner

lejard-h commented Apr 3, 2021

Please use 0.0.20-nullsafety.2 version of the package, it should fix your issue

@wanclem
Copy link
Author

wanclem commented Apr 5, 2021

@lejard-h Cool. That worked. Thanks.

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