algolia / algolia/algoliasearch-client-dart
sendTimeout warning/error on flutter Web
- Dominant language
- Dart
- Stars
- 17
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
I'm running algoliasearch 1.22.0 on Flutter Web and keep getting the following error:
[🔔 Dio] sendTimeout cannot be used without a request body to send on Web
[🔔 Dio] _StackTrace (../dart-sdk/lib/_internal/js_dev_runtime/patch/core_patch.dart 843:28 get current
....
This is the Repository where the Algolia is configured:
class UsersSearchRepository {
const UsersSearchRepository(this._algoliaSearchClient);
final SearchClient _algoliaSearchClient;
Future> search(String inputSearchText) async {
final queryHits = SearchParamsObject(
query: inputSearchText,
);
/
final responseHits = await _algoliaSearchClient.searchSingleIndex(
indexName: 'app_users_collection',
searchParams: queryHits,
);
return responseHits.hits.map((searchHit) {
return AppUser.fromMap(searchHit.toJson());
}).toList();
}
}
Initialized below:
@Riverpod(keepAlive: true)
UsersSearchRepository usersSearchRepository(UsersSearchRepositoryRef ref) {
final algoliaSearch = SearchClient(
appId: 'Foo',
apiKey: 'Bar,
);
return UsersSearchRepository(algoliaSearch);
}
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the report with algoliasearch 1.22.0 on Flutter Web using the SearchClient.searchSingleIndex example. Trace how the sendTimeout warning/error is produced during that call and verify that the search completes without it on Web.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100