Skip to content

Commit 1fad3f6

Browse files
fix(clients): link to support/help center on unreachable hosts (generated)
algolia/api-clients-automation#5305 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 456da6e commit 1fad3f6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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")
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):

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")
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):

0 commit comments

Comments
 (0)