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

Update createRetryError.ts #1501

Open
wants to merge 2 commits into
base: v4
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe('hosts cache integration with cache drivers', () => {

const message =
// eslint-disable-next-line max-len
'Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.';
'Unreachable hosts - your application id may be incorrect. If the error persists, please create a ticket at https://support.algolia.com/ sharing steps we can use to reproduce the issue.';

await expect(transporter.read(transporterRequest)).rejects.toMatchObject({
message,
Expand Down
2 changes: 1 addition & 1 deletion packages/transporter/src/__tests__/unit/stackTrace.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ describe('transporter stack trace serialization', () => {
await expect(transporter.read(transporterRequest)).rejects.toEqual({
name: 'RetryError',
message:
'Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.',
'Unreachable hosts - your application id may be incorrect. If the error persists, please create a ticket at https://support.algolia.com/ sharing steps we can use to reproduce the issue.',
transporterStackTrace,
});

Expand Down
6 changes: 3 additions & 3 deletions packages/transporter/src/__tests__/unit/timeouts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe('the timeouts selection', () => {
await expect(transporter.read(transporterRequest)).rejects.toMatchObject({
name: 'RetryError',
message:
'Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.',
'Unreachable hosts - your application id may be incorrect. If the error persists, please create a ticket at https://support.algolia.com/ sharing steps we can use to reproduce the issue.',
});

assertRequest({
Expand All @@ -111,7 +111,7 @@ describe('the timeouts selection', () => {
await expect(transporter.read(transporterRequest)).rejects.toMatchObject({
name: 'RetryError',
message:
'Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.',
'Unreachable hosts - your application id may be incorrect. If the error persists, please create a ticket at https://support.algolia.com/ sharing steps we can use to reproduce the issue.',
});

assertRequest({
Expand Down Expand Up @@ -142,7 +142,7 @@ describe('the timeouts selection', () => {
await expect(transporter.read(transporterRequest)).rejects.toMatchObject({
name: 'RetryError',
message:
'Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.',
'Unreachable hosts - your application id may be incorrect. If the error persists, please create a ticket at https://support.algolia.com/ sharing steps we can use to reproduce the issue.',
});

assertRequest({
Expand Down
2 changes: 1 addition & 1 deletion packages/transporter/src/errors/createRetryError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export function createRetryError(transporterStackTrace: readonly StackFrame[]):
return {
name: 'RetryError',
message:
'Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.',
'Unreachable hosts - your application id may be incorrect. If the error persists, please create a ticket at https://support.algolia.com/ sharing steps we can use to reproduce the issue.',
transporterStackTrace,
};
}