GeezerVison is showing github.com — fix(client): explain possible network blocking for T3 Connect (#9783) · pingdotgg/t3code@2dca7a1
File treeExpand file treeCollapse file tree Open diff view settings apps/web/src/components/settings packages/client-runtime/src
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/settings/ConnectionsSettings.tsx +3-1Lines changed: 3 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -1524,7 +1524,9 @@ function SavedBackendListRow({ | 1524 | 1524 | ) : null} | 1525 | 1525 | {environment.connection.error && !resumingServerUpdate ? ( | 1526 | 1526 | <p className="flex min-w-0 items-center gap-2 text-destructive text-xs"> | 1527 | | - <span className="truncate">{connectionStatusText(environment.connection)}</span> | | 1527 | + <span className="min-w-0 break-words"> | | 1528 | + {connectionStatusText(environment.connection)} | | 1529 | + </span> | 1528 | 1530 | {errorTraceId ? ( | 1529 | 1531 | <button | 1530 | 1532 | type="button" | |
Collapse file Copy file name to clipboardExpand all lines: packages/client-runtime/src/authorization/service.ts +4-3Lines changed: 4 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -80,9 +80,10 @@ function mapDpopSocketError(error: RemoteEnvironmentAuthError | ConnectionAttemp | 80 | 80 |
| 81 | 81 | const fetchDescriptor = Effect.fn("clientRuntime.connection.remote.fetchDescriptor")(function* ( | 82 | 82 | httpBaseUrl: string, | | 83 | + connectionMethod: ClientConnectionMethod, | 83 | 84 | ) { | 84 | 85 | return yield* fetchRemoteEnvironmentDescriptor({ httpBaseUrl }).pipe( | 85 | | - Effect.mapError(mapRemoteEnvironmentError), | | 86 | + Effect.mapError((error) => mapRemoteEnvironmentError(error, connectionMethod)), | 86 | 87 | ); | 87 | 88 | }); | 88 | 89 |
| @@ -119,7 +120,7 @@ export const make = Effect.gen(function* () { | 119 | 120 | cachedDescriptor.validatedAtEpochMs + BEARER_DESCRIPTOR_CACHE_TTL_MS > now; | 120 | 121 | const descriptor = canReuseDescriptor | 121 | 122 | ? cachedDescriptor.descriptor | 122 | | - : yield* fetchDescriptor(input.httpBaseUrl).pipe( | | 123 | + : yield* fetchDescriptor(input.httpBaseUrl, input.connectionMethod).pipe( | 123 | 124 | Effect.provideService(HttpClient.HttpClient, httpClient), | 124 | 125 | ); | 125 | 126 | if (descriptor.environmentId !== input.expectedEnvironmentId) { | @@ -252,7 +253,7 @@ export const make = Effect.gen(function* () { | 252 | 253 | "connection.remote_token_cache": "miss", | 253 | 254 | }); | 254 | 255 | const bootstrap = yield* input.obtainBootstrap; | 255 | | - const descriptor = yield* fetchDescriptor(bootstrap.endpoint.httpBaseUrl).pipe( | | 256 | + const descriptor = yield* fetchDescriptor(bootstrap.endpoint.httpBaseUrl, "relay").pipe( | 256 | 257 | Effect.provideService(HttpClient.HttpClient, httpClient), | 257 | 258 | Effect.withSpan("environment.authorization.descriptor"), | 258 | 259 | ); | |
Collapse file Copy file name to clipboardExpand all lines: packages/client-runtime/src/connection/errors.test.ts +58-2Lines changed: 58 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | import { EnvironmentAuthInvalidError } from "@t3tools/contracts"; | 2 | | -import { RelayAuthInvalidError } from "@t3tools/contracts/relay"; | | 2 | +import { | | 3 | + RelayAuthInvalidError, | | 4 | + RelayEnvironmentEndpointTimedOutError, | | 5 | +} from "@t3tools/contracts/relay"; | 3 | 6 | import { describe, expect, it } from "@effect/vitest"; | 4 | 7 |
| 5 | | -import { mapManagedRelayError, mapRemoteDpopEnvironmentError } from "./errors.ts"; | | 8 | +import { | | 9 | + mapManagedRelayError, | | 10 | + mapRemoteDpopEnvironmentError, | | 11 | + mapRemoteEnvironmentError, | | 12 | +} from "./errors.ts"; | 6 | 13 | import { DPOP_RETRY_HINT, DPOP_UNKNOWN_HINT } from "../relay/errorPresentation.ts"; | 7 | 14 | import { ManagedRelayRequestFailedError } from "../relay/managedRelay.ts"; | | 15 | +import { NETWORK_BLOCKING_HINT } from "../errors/network.ts"; | | 16 | +import { RemoteEnvironmentAuthFetchError, RemoteEnvironmentAuthTimeoutError } from "../rpc/http.ts"; | 8 | 17 |
| 9 | 18 | describe("mapManagedRelayError", () => { | | 19 | + it("keeps a timeout reported by the relay distinct from a local network failure", () => { | | 20 | + const relayError = new RelayEnvironmentEndpointTimedOutError({ | | 21 | + code: "environment_endpoint_timed_out", | | 22 | + traceId: "trace-server-timeout", | | 23 | + }); | | 24 | + const mapped = mapManagedRelayError( | | 25 | + new ManagedRelayRequestFailedError({ | | 26 | + action: "connect relay environment", | | 27 | + cause: relayError, | | 28 | + relayError, | | 29 | + }), | | 30 | + ); | | 31 | + expect(mapped).toMatchObject({ | | 32 | + reason: "timeout", | | 33 | + detail: "Relay timed out while contacting the environment endpoint.", | | 34 | + traceId: "trace-server-timeout", | | 35 | + }); | | 36 | + }); | | 37 | + | 10 | 38 | it("presents clock skew as one possible cause for a generic DPoP error", () => { | 11 | 39 | const mapped = mapManagedRelayError( | 12 | 40 | new ManagedRelayRequestFailedError({ | @@ -48,6 +76,34 @@ describe("mapManagedRelayError", () => { | 48 | 76 | }); | 49 | 77 |
| 50 | 78 | describe("mapRemoteDpopEnvironmentError", () => { | | 79 | + it("keeps relay descriptor auth failures distinct from DPoP proof failures", () => { | | 80 | + const error = new EnvironmentAuthInvalidError({ | | 81 | + code: "auth_invalid", | | 82 | + reason: "invalid_credential", | | 83 | + traceId: "trace-descriptor", | | 84 | + }); | | 85 | + expect(mapRemoteEnvironmentError(error, "relay").message).toBe( | | 86 | + "The environment credential is invalid.", | | 87 | + ); | | 88 | + expect(mapRemoteDpopEnvironmentError(error).message).toBe( | | 89 | + `The environment credential is invalid. ${DPOP_UNKNOWN_HINT}`, | | 90 | + ); | | 91 | + }); | | 92 | + | | 93 | + it.each([ | | 94 | + new RemoteEnvironmentAuthFetchError({ | | 95 | + message: "Failed to fetch remote environment endpoint.", | | 96 | + cause: new TypeError("Failed to fetch"), | | 97 | + }), | | 98 | + new RemoteEnvironmentAuthTimeoutError("https://environment.example.test", 10_000), | | 99 | + ])("suggests another network when the relay endpoint cannot be reached: $_tag", (error) => { | | 100 | + const mapped = mapRemoteDpopEnvironmentError(error); | | 101 | + expect(mapped).toMatchObject({ | | 102 | + _tag: "ConnectionTransientError", | | 103 | + detail: `${error.message} ${NETWORK_BLOCKING_HINT}`, | | 104 | + }); | | 105 | + }); | | 106 | + | 51 | 107 | it("does not present a generic environment auth error as confirmed clock skew", () => { | 52 | 108 | const mapped = mapRemoteDpopEnvironmentError( | 53 | 109 | new EnvironmentAuthInvalidError({ | |
Collapse file Copy file name to clipboardExpand all lines: packages/client-runtime/src/connection/errors.ts +7-4Lines changed: 7 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -import type { EnvironmentId } from "@t3tools/contracts"; | | 1 | +import type { ClientConnectionMethod, EnvironmentId } from "@t3tools/contracts"; | 2 | 2 | import type { RelayProtectedError } from "@t3tools/contracts/relay"; | 3 | 3 | import type { ManagedRelayClientError } from "../relay/managedRelay.ts"; | 4 | 4 | import { dpopFailureMessage, relayProtectedErrorMessage } from "../relay/errorPresentation.ts"; | 5 | 5 | import type { RemoteEnvironmentAuthError } from "../authorization/remote.ts"; | | 6 | +import { NETWORK_BLOCKING_HINT } from "../errors/network.ts"; | 6 | 7 | import { | 7 | 8 | ConnectionBlockedError, | 8 | 9 | type ConnectionAttemptError, | @@ -113,7 +114,9 @@ export function mapManagedRelayError(error: ManagedRelayClientError): Connection | 113 | 114 |
| 114 | 115 | export function mapRemoteEnvironmentError( | 115 | 116 | error: RemoteEnvironmentAuthError, | | 117 | + connectionMethod: ClientConnectionMethod = "direct", | 116 | 118 | ): ConnectionAttemptError { | | 119 | + const networkHint = connectionMethod === "relay" ? ` ${NETWORK_BLOCKING_HINT}` : ""; | 117 | 120 | switch (error._tag) { | 118 | 121 | case "EnvironmentAuthInvalidError": | 119 | 122 | return new ConnectionBlockedError({ | @@ -146,12 +149,12 @@ export function mapRemoteEnvironmentError( | 146 | 149 | case "RemoteEnvironmentAuthTimeoutError": | 147 | 150 | return new ConnectionTransientError({ | 148 | 151 | reason: "timeout", | 149 | | - detail: error.message, | | 152 | + detail: `${error.message}${networkHint}`, | 150 | 153 | }); | 151 | 154 | case "RemoteEnvironmentAuthFetchError": | 152 | 155 | return new ConnectionTransientError({ | 153 | 156 | reason: "network", | 154 | | - detail: error.message, | | 157 | + detail: `${error.message}${networkHint}`, | 155 | 158 | }); | 156 | 159 | case "EnvironmentInternalError": | 157 | 160 | return new ConnectionTransientError({ | @@ -185,5 +188,5 @@ export function mapRemoteDpopEnvironmentError( | 185 | 188 | traceId: error.traceId, | 186 | 189 | }); | 187 | 190 | } | 188 | | - return mapRemoteEnvironmentError(error); | | 191 | + return mapRemoteEnvironmentError(error, "relay"); | 189 | 192 | } |
Collapse file Copy file name to clipboardExpand all lines: packages/client-runtime/src/connection/supervisor.test.ts +31-1Lines changed: 31 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -30,6 +30,7 @@ import { | 30 | 30 | import * as RpcSession from "../rpc/session.ts"; | 31 | 31 | import * as EnvironmentSupervisor from "./supervisor.ts"; | 32 | 32 | import * as ConnectionWakeups from "./wakeups.ts"; | | 33 | +import { NETWORK_BLOCKING_HINT } from "../errors/network.ts"; | 33 | 34 |
| 34 | 35 | const TARGET = new PrimaryConnectionTarget({ | 35 | 36 | environmentId: EnvironmentId.make("environment-1"), | @@ -467,6 +468,35 @@ describe("EnvironmentSupervisor", () => { | 467 | 468 | }).pipe(Effect.provide(TestClock.layer())), | 468 | 469 | ); | 469 | 470 |
| | 471 | + it.effect( | | 472 | + "shows a network hint for a stalled relay connection and clears it after recovery", | | 473 | + () => | | 474 | + Effect.gen(function* () { | | 475 | + const harness = yield* makeHarness({ | | 476 | + prepare: (attempt) => | | 477 | + attempt === 1 ? Effect.never : Effect.succeed(PREPARED_CONNECTION), | | 478 | + }); | | 479 | + const supervisor = yield* EnvironmentSupervisor.make(RELAY_ENTRY, { | | 480 | + initiallyDesired: true, | | 481 | + }).pipe(Effect.provide(harness.dependencies)); | | 482 | + | | 483 | + yield* awaitState(supervisor.state, (state) => state.phase === "connecting"); | | 484 | + yield* TestClock.adjust("15 seconds"); | | 485 | + const failed = yield* awaitState(supervisor.state, (state) => state.phase === "backoff"); | | 486 | + expect(failed.lastFailure?.message).toBe( | | 487 | + `Test environment did not respond during connection setup. ${NETWORK_BLOCKING_HINT}`, | | 488 | + ); | | 489 | + | | 490 | + yield* TestClock.adjust("3 seconds"); | | 491 | + const recovered = yield* awaitState( | | 492 | + supervisor.state, | | 493 | + (state) => state.phase === "connected", | | 494 | + ); | | 495 | + expect(recovered.lastFailure).toBeNull(); | | 496 | + expect(yield* Ref.get(harness.prepareCount)).toBe(2); | | 497 | + }).pipe(Effect.provide(TestClock.layer())), | | 498 | + ); | | 499 | + | 470 | 500 | it.effect("converts unexpected driver defects into retryable failures", () => | 471 | 501 | Effect.gen(function* () { | 472 | 502 | const harness = yield* makeHarness({ | @@ -475,7 +505,7 @@ describe("EnvironmentSupervisor", () => { | 475 | 505 | ? Effect.die(new Error("Native transport defect.")) | 476 | 506 | : Effect.succeed(PREPARED_CONNECTION), | 477 | 507 | }); | 478 | | - const supervisor = yield* EnvironmentSupervisor.make(TARGET_ENTRY, { | | 508 | + const supervisor = yield* EnvironmentSupervisor.make(RELAY_ENTRY, { | 479 | 509 | initiallyDesired: true, | 480 | 510 | }).pipe(Effect.provide(harness.dependencies)); | 481 | 511 |
| |
Collapse file Copy file name to clipboardExpand all lines: packages/client-runtime/src/connection/supervisor.ts +6-2Lines changed: 6 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -28,6 +28,7 @@ import { | 28 | 28 | } from "./model.ts"; | 29 | 29 | import * as RpcSession from "../rpc/session.ts"; | 30 | 30 | import { safeErrorLogAttributes } from "../errors/safeLog.ts"; | | 31 | +import { NETWORK_BLOCKING_HINT } from "../errors/network.ts"; | 31 | 32 | import * as ConnectionWakeups from "./wakeups.ts"; | 32 | 33 |
| 33 | 34 | const RETRY_DELAYS_MS = [3_000, 4_000, 8_000, 16_000] as const; | @@ -241,6 +242,9 @@ export const make = Effect.fn("EnvironmentSupervisor.make")(function* ( | 241 | 242 | | ConnectionWakeups.ConnectionWakeups | 242 | 243 | > { | 243 | 244 | const target = entry.target; | | 245 | + const setupTimeoutDetail = `${target.label} did not respond during connection setup.${ | | 246 | + target._tag === "RelayConnectionTarget" ? ` ${NETWORK_BLOCKING_HINT}` : "" | | 247 | + }`; | 244 | 248 | yield* annotateTarget(target); | 245 | 249 |
| 246 | 250 | const connectivity = yield* Connectivity.Connectivity; | @@ -626,7 +630,7 @@ export const make = Effect.fn("EnvironmentSupervisor.make")(function* ( | 626 | 630 | } else { | 627 | 631 | replacementError = new ConnectionTransientError({ | 628 | 632 | reason: "timeout", | 629 | | - detail: `${target.label} did not respond during connection setup.`, | | 633 | + detail: setupTimeoutDetail, | 630 | 634 | }); | 631 | 635 | } | 632 | 636 |
| @@ -708,7 +712,7 @@ export const make = Effect.fn("EnvironmentSupervisor.make")(function* ( | 708 | 712 | failure: { | 709 | 713 | error: new ConnectionTransientError({ | 710 | 714 | reason: "timeout", | 711 | | - detail: `${target.label} did not respond during connection setup.`, | | 715 | + detail: setupTimeoutDetail, | 712 | 716 | }), | 713 | 717 | attemptSpan: Option.none(), | 714 | 718 | }, | |
Collapse file Copy file name to clipboard +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +// A failed request cannot distinguish filtering from an outage. Keep this a | | 2 | +// possible cause, and suggest a way to check without changing server settings. | | 3 | +export const NETWORK_BLOCKING_HINT = | | 4 | + "Your DNS or firewall may be blocking T3 Connect. Try another network, such as a phone hotspot."; |
Collapse file Copy file name to clipboardExpand all lines: packages/client-runtime/src/relay/discovery.test.ts +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -19,6 +19,7 @@ import * as Connectivity from "../connection/connectivity.ts"; | 19 | 19 | import { ConnectionBlockedError, type NetworkStatus } from "../connection/model.ts"; | 20 | 20 | import * as ConnectionWakeups from "../connection/wakeups.ts"; | 21 | 21 | import * as RelayEnvironmentDiscovery from "./discovery.ts"; | | 22 | +import { NETWORK_BLOCKING_HINT } from "../errors/network.ts"; | 22 | 23 |
| 23 | 24 | const environments = [ | 24 | 25 | { | @@ -305,7 +306,7 @@ describe("RelayEnvironmentDiscovery", () => { | 305 | 306 | expect(Option.getOrThrow(state.error)).toMatchObject({ | 306 | 307 | _tag: "ConnectionTransientError", | 307 | 308 | reason: "timeout", | 308 | | - message: "Relay environment listing timed out.", | | 309 | + message: `Relay environment listing timed out. ${NETWORK_BLOCKING_HINT}`, | 309 | 310 | }); | 310 | 311 | }).pipe(Effect.provide(layer)); | 311 | 312 | }), | |
Collapse file Copy file name to clipboardExpand all lines: packages/client-runtime/src/relay/managedRelay.test.ts +39-1Lines changed: 39 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -9,10 +9,15 @@ import * as Effect from "effect/Effect"; | 9 | 9 | import * as Fiber from "effect/Fiber"; | 10 | 10 | import * as Layer from "effect/Layer"; | 11 | 11 | import * as Tracer from "effect/Tracer"; | | 12 | +import * as Schema from "effect/Schema"; | 12 | 13 | import * as TestClock from "effect/testing/TestClock"; | 13 | 14 |
| 14 | 15 | import * as ManagedRelay from "./managedRelay.ts"; | 15 | 16 | import { remoteHttpClientLayer } from "../rpc/http.ts"; | | 17 | +import { NETWORK_BLOCKING_HINT } from "../errors/network.ts"; | | 18 | + | | 19 | +const encodeRelayError = Schema.encodeEffect(ManagedRelay.ManagedRelayClientError); | | 20 | +const decodeRelayError = Schema.decodeUnknownEffect(ManagedRelay.ManagedRelayClientError); | 16 | 21 |
| 17 | 22 | function managedRelayTestLayer( | 18 | 23 | fetchFn: typeof globalThis.fetch, | @@ -529,11 +534,44 @@ describe("ManagedRelayClient", () => { | 529 | 534 | _tag: "ManagedRelayRequestTimeoutError", | 530 | 535 | activity: "Relay environment listing", | 531 | 536 | timeoutMs: ManagedRelay.MANAGED_RELAY_REQUEST_TIMEOUT_MS, | 532 | | - message: "Relay environment listing timed out.", | | 537 | + message: `Relay environment listing timed out. ${NETWORK_BLOCKING_HINT}`, | 533 | 538 | }); | 534 | 539 | }).pipe(Effect.provide(Layer.merge(TestClock.layer(), managedRelayTestLayer(fetchFn)))); | 535 | 540 | }); | 536 | 541 |
| | 542 | + it.effect("suggests checking network filtering when fetch fails without a response", () => { | | 543 | + const fetchFn = (() => | | 544 | + Promise.reject(new TypeError("Failed to fetch"))) satisfies typeof globalThis.fetch; | | 545 | + return Effect.gen(function* () { | | 546 | + const relayClient = yield* ManagedRelay.ManagedRelayClient; | | 547 | + const error = yield* relayClient | | 548 | + .listEnvironments({ clerkToken: "clerk-token" }) | | 549 | + .pipe(Effect.flip); | | 550 | + expect(error).toMatchObject({ | | 551 | + _tag: "ManagedRelayRequestFailedError", | | 552 | + transportFailed: true, | | 553 | + message: `Could not list relay-managed environments. ${NETWORK_BLOCKING_HINT}`, | | 554 | + }); | | 555 | + const encoded = yield* encodeRelayError(error); | | 556 | + const decoded = yield* decodeRelayError(encoded); | | 557 | + expect(decoded.message).toBe(error.message); | | 558 | + }).pipe(Effect.provide(managedRelayTestLayer(fetchFn))); | | 559 | + }); | | 560 | + | | 561 | + it.effect("does not suggest network filtering for an HTTP server error", () => { | | 562 | + const fetchFn = (() => | | 563 | + Promise.resolve( | | 564 | + new Response("Unavailable", { status: 503 }), | | 565 | + )) satisfies typeof globalThis.fetch; | | 566 | + return Effect.gen(function* () { | | 567 | + const relayClient = yield* ManagedRelay.ManagedRelayClient; | | 568 | + const error = yield* relayClient | | 569 | + .listEnvironments({ clerkToken: "clerk-token" }) | | 570 | + .pipe(Effect.flip); | | 571 | + expect(error.message).toBe("Could not list relay-managed environments."); | | 572 | + }).pipe(Effect.provide(managedRelayTestLayer(fetchFn))); | | 573 | + }); | | 574 | + | 537 | 575 | it.effect("preserves typed relay trace IDs on client errors", () => { | 538 | 576 | const fetchFn = (() => | 539 | 577 | Promise.resolve( | |
Collapse file Copy file name to clipboardExpand all lines: packages/client-runtime/src/relay/managedRelay.ts +7-2Lines changed: 7 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -44,6 +44,7 @@ import * as SynchronizedRef from "effect/SynchronizedRef"; | 44 | 44 | import * as HttpClientError from "effect/unstable/http/HttpClientError"; | 45 | 45 | import type * as HttpMethod from "effect/unstable/http/HttpMethod"; | 46 | 46 | import * as HttpApiClient from "effect/unstable/httpapi/HttpApiClient"; | | 47 | +import { NETWORK_BLOCKING_HINT } from "../errors/network.ts"; | 47 | 48 |
| 48 | 49 | export interface ManagedRelayDpopProofInput { | 49 | 50 | readonly method: HttpMethod.HttpMethod; | @@ -126,7 +127,7 @@ export class ManagedRelayRequestTimeoutError extends Schema.TaggedErrorClass<Man | 126 | 127 | }, | 127 | 128 | ) { | 128 | 129 | override get message(): string { | 129 | | - return `${this.activity} timed out.`; | | 130 | + return `${this.activity} timed out. ${NETWORK_BLOCKING_HINT}`; | 130 | 131 | } | 131 | 132 | } | 132 | 133 |
| @@ -145,13 +146,15 @@ export class ManagedRelayRequestFailedError extends Schema.TaggedErrorClass<Mana | 145 | 146 | "ManagedRelayRequestFailedError", | 146 | 147 | { | 147 | 148 | action: ManagedRelayRequestAction, | | 149 | + transportFailed: Schema.optionalKey(Schema.Boolean), | 148 | 150 | cause: Schema.Defect(), | 149 | 151 | relayError: Schema.optional(RelayProtectedError), | 150 | 152 | traceId: Schema.optional(Schema.String), | 151 | 153 | }, | 152 | 154 | ) { | 153 | 155 | override get message(): string { | 154 | | - return `Could not ${this.action}.`; | | 156 | + const message = `Could not ${this.action}.`; | | 157 | + return this.transportFailed ? `${message} ${NETWORK_BLOCKING_HINT}` : message; | 155 | 158 | } | 156 | 159 | } | 157 | 160 |
| @@ -307,6 +310,8 @@ function relayRequestError(action: ManagedRelayRequestAction) { | 307 | 310 | return (cause: RelayHttpRequestError): ManagedRelayClientError => | 308 | 311 | new ManagedRelayRequestFailedError({ | 309 | 312 | action, | | 313 | + transportFailed: | | 314 | + HttpClientError.isHttpClientError(cause) && cause.reason._tag === "TransportError", | 310 | 315 | cause, | 311 | 316 | ...(isRelayProtectedError(cause) ? { relayError: cause, traceId: cause.traceId } : {}), | 312 | 317 | }); | |
|