Skip to content

Commit f6639b0

Browse files
committed
fix: dart
1 parent d3f70b2 commit f6639b0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

clients/algoliasearch-client-dart/packages/client_core/lib/src/algolia_exception.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ final class AlgoliaWaitException implements AlgoliaException {
7373
final class UnreachableHostsException implements AlgoliaException {
7474
/// The list of errors associated with each unreachable host.
7575
final List<AlgoliaException> errors;
76+
final String message;
7677

7778
/// Constructs an [UnreachableHostsException] with the provided list of errors.
7879
const UnreachableHostsException(this.errors);

tests/CTS/client/search/api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
"expected": {
134134
"error": {
135135
"csharp": "RetryStrategy failed to connect to Algolia. If the error persists, please visit our help center <SUPPORT_LINK_HERE> or reach out to the Algolia Support team: https://alg.li/support. Reason: The operation has timed out.",
136-
"dart": "UnreachableHostsException{errors: [AlgoliaTimeoutException{error: DioException [receive timeout]: The request took longer than 0:00:05.000000 to receive data. It was aborted. To get rid of this exception, try raising the RequestOptions.receiveTimeout above the duration of 0:00:05.000000 or improve the response time of the server., message: If the error persists, please visit our help center <SUPPORT_LINK_HERE> or reach out to the Algolia Support team: https://alg.li/support.}]}",
136+
"dart": "UnreachableHostsException{errors: [AlgoliaTimeoutException{error: DioException [receive timeout]: The request took longer than 0:00:05.000000 to receive data. It was aborted. To get rid of this exception, try raising the RequestOptions.receiveTimeout above the duration of 0:00:05.000000 or improve the response time of the server.}], message: If the error persists, please visit our help center <SUPPORT_LINK_HERE> or reach out to the Algolia Support team: https://alg.li/support.}",
137137
"go": "failed to do request: all hosts have been contacted unsuccessfully, it can either be a server or a network error or wrong appID/key credentials were used. If the error persists, please visit our help center <SUPPORT_LINK_HERE> or reach out to the Algolia Support team: https://alg.li/support. You can use 'ExposeIntermediateNetworkErrors: true' in the config to investigate.",
138138
"java": "Error(s) while processing the retry strategy. If the error persists, please visit our help center <SUPPORT_LINK_HERE> or reach out to the Algolia Support team: https://alg.li/support.\\nCaused by: java.net.SocketTimeoutException: timeout",
139139
"javascript": "Unreachable hosts - your application id may be incorrect. If the error persists, please visit our help center <SUPPORT_LINK_HERE> or reach out to the Algolia Support team: https://alg.li/support.",

0 commit comments

Comments
 (0)