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

[bug]: [🔔 Dio] sendTimeout cannot be used without a request body to send on Web #17

Open
moinkhan780 opened this issue Sep 16, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@moinkhan780
Copy link

Description

[🔔 Dio] sendTimeout cannot be used without a request body to send on Web

Client

Search

Version

Latest

Relevant log output

No response

@moinkhan780 moinkhan780 added the bug Something isn't working label Sep 16, 2024
@ilmarfreitas
Copy link

The same exception happens to me too.

algolia_helper_flutter: 1.1.0

@hughesyadaddy
Copy link

Also effecting me! Please help!

@kaz080
Copy link

kaz080 commented Oct 17, 2024

It’s just a warning, so there’s no problem other than it being annoying.

This is a bug in the dio package, and it seems it will be fixed in the next release.
cfug/dio#2306
https://github.com/cfug/dio/pull/2309/files

Temporarily, you can avoid the warning by setting timeout option:

  final insights = InsightsClient(
    appId: kAlgoliaApplicationId,
    apiKey: kAlgoliaApiKey,
    options: const ClientOptions(writeTimeout: Duration(seconds: kIsWeb && kDebugMode ? 0 : 30)),
  );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants