Skip to content

Commit 2de8a45

Browse files
fix(clients): link to support/help center on unreachable hosts (#5305) (generated) [skip ci]
Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 2fa0389 commit 2de8a45

File tree

49 files changed

+143
-119
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+143
-119
lines changed

clients/algoliasearch-client-csharp/algoliasearch/Transport/HttpTransport.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@ private async Task<TResult> ExecuteRequestAsync<TResult, TData>(
223223
}
224224

225225
throw new AlgoliaUnreachableHostException(
226-
"RetryStrategy failed to connect to Algolia. If the error persists, please visit our help center https://alg.li/support-unreachable-hosts or reach out to the Algolia Support team: https://alg.li/support Reason: " + _errorMessage
226+
"RetryStrategy failed to connect to Algolia. If the error persists, please visit our help center https://alg.li/support-unreachable-hosts or reach out to the Algolia Support team: https://alg.li/support Reason: "
227+
+ _errorMessage
227228
);
228229
}
229230

clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/exceptions/AlgoliaRetryException.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ public class AlgoliaRetryException extends AlgoliaRuntimeException {
1212
private final List<Throwable> errors;
1313

1414
public AlgoliaRetryException(List<Throwable> errors) {
15-
super("Error(s) while processing the retry strategy. If the error persists, please visit our help center https://alg.li/support-unreachable-hosts or reach out to the Algolia Support team: https://alg.li/support", errors.get(errors.size() - 1));
15+
super(
16+
"Error(s) while processing the retry strategy. If the error persists, please visit our help" +
17+
" center https://alg.li/support-unreachable-hosts or reach out to the Algolia Support" +
18+
" team: https://alg.li/support",
19+
errors.get(errors.size() - 1)
20+
);
1621
this.errors = errors;
1722
}
1823

clients/algoliasearch-client-python/algoliasearch/http/transporter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ async def request(
9999

100100
raise RequestException(content, response.status_code)
101101

102-
raise AlgoliaUnreachableHostException("Unreachable hosts. If the error persists, please visit our help center https://alg.li/support-unreachable-hosts or reach out to the Algolia Support team: https://alg.li/support")
102+
raise AlgoliaUnreachableHostException(
103+
"Unreachable hosts. If the error persists, please visit our help center https://alg.li/support-unreachable-hosts or reach out to the Algolia Support team: https://alg.li/support"
104+
)
103105

104106

105107
class EchoTransporter(Transporter):

clients/algoliasearch-client-python/algoliasearch/http/transporter_sync.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ def request(
112112

113113
raise RequestException(content, response.status_code)
114114

115-
raise AlgoliaUnreachableHostException("Unreachable hosts. If the error persists, please visit our help center https://alg.li/support-unreachable-hosts or reach out to the Algolia Support team: https://alg.li/support")
115+
raise AlgoliaUnreachableHostException(
116+
"Unreachable hosts. If the error persists, please visit our help center https://alg.li/support-unreachable-hosts or reach out to the Algolia Support team: https://alg.li/support"
117+
)
116118

117119

118120
class EchoTransporterSync(TransporterSync):

clients/algoliasearch-client-ruby/lib/algolia/transport/transport.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,12 @@ def request(call_type, method, path, body, opts = {})
8585
end
8686
end
8787

88-
raise Algolia::AlgoliaUnreachableHostError.new("Unreachable hosts. If the error persists, please visit our help center https://alg.li/support-unreachable-hosts or reach out to the Algolia Support team: https://alg.li/support", retry_errors)
88+
raise(
89+
Algolia::AlgoliaUnreachableHostError.new(
90+
"Unreachable hosts. If the error persists, please visit our help center https://alg.li/support-unreachable-hosts or reach out to the Algolia Support team: https://alg.li/support",
91+
retry_errors
92+
)
93+
)
8994
end
9095

9196
private

docs/bundled/insights-snippets.json

Lines changed: 11 additions & 11 deletions
Large diffs are not rendered by default.

docs/snippets/csharp/src/Insights.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ public async Task SnippetForInsightsClientPushEvents1()
509509
Index = "products",
510510
UserToken = "user-123456",
511511
AuthenticatedUserToken = "user-123456",
512-
Timestamp = 1756598400000L,
512+
Timestamp = 1756857600000L,
513513
ObjectIDs = new List<string> { "9780545139700", "9780439784542" },
514514
QueryID = "43b15df305339e827f0ac0bdc5ebcaa7",
515515
}
@@ -522,7 +522,7 @@ public async Task SnippetForInsightsClientPushEvents1()
522522
Index = "products",
523523
UserToken = "user-123456",
524524
AuthenticatedUserToken = "user-123456",
525-
Timestamp = 1756598400000L,
525+
Timestamp = 1756857600000L,
526526
ObjectIDs = new List<string> { "9780545139700", "9780439784542" },
527527
}
528528
),

docs/snippets/dart/lib/insights.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ void snippetForpushEvents1() async {
566566
index: "products",
567567
userToken: "user-123456",
568568
authenticatedUserToken: "user-123456",
569-
timestamp: 1756598400000,
569+
timestamp: 1756857600000,
570570
objectIDs: [
571571
"9780545139700",
572572
"9780439784542",
@@ -579,7 +579,7 @@ void snippetForpushEvents1() async {
579579
index: "products",
580580
userToken: "user-123456",
581581
authenticatedUserToken: "user-123456",
582-
timestamp: 1756598400000,
582+
timestamp: 1756857600000,
583583
objectIDs: [
584584
"9780545139700",
585585
"9780439784542",

docs/snippets/go/src/insights.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/snippets/java/src/test/java/com/algolia/Insights.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ void snippetForPushEvents1() throws Exception {
488488
.setIndex("products")
489489
.setUserToken("user-123456")
490490
.setAuthenticatedUserToken("user-123456")
491-
.setTimestamp(1756598400000L)
491+
.setTimestamp(1756857600000L)
492492
.setObjectIDs(Arrays.asList("9780545139700", "9780439784542"))
493493
.setQueryID("43b15df305339e827f0ac0bdc5ebcaa7"),
494494
new ViewedObjectIDs()
@@ -497,7 +497,7 @@ void snippetForPushEvents1() throws Exception {
497497
.setIndex("products")
498498
.setUserToken("user-123456")
499499
.setAuthenticatedUserToken("user-123456")
500-
.setTimestamp(1756598400000L)
500+
.setTimestamp(1756857600000L)
501501
.setObjectIDs(Arrays.asList("9780545139700", "9780439784542"))
502502
)
503503
)

0 commit comments

Comments
 (0)