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

an exception is being thrown when using a list in a post body #21

Open
SPiercer opened this issue Aug 7, 2023 · 2 comments
Open

an exception is being thrown when using a list in a post body #21

SPiercer opened this issue Aug 7, 2023 · 2 comments

Comments

@SPiercer
Copy link

SPiercer commented Aug 7, 2023

final response = await client.put(
  '/route',
  body: [
    {'id': id}
  ],
);

when i send an array/list in the body it throws an exception where List<Map<String,dynamic>> not subtype of Map<String,dynamic>
when showing the request in the logs screen

httpclient used is Dio

@WiRight
Copy link
Contributor

WiRight commented Dec 18, 2023

Hey! Maybe i fixed this in #20
But is not merged yet...

You can use is like

dependency_overrides:
  cr_logger:
    git:
      url: https://github.com/DizoftTeam/cr_logger.git

@guccisekspir
Copy link

Even library updated 2 weeks ago this 2 years issue still remain. I am not sure that there is big amount of work.

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

3 participants