Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(client): explain possible network blocking for T3 Connect #9783

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/9783/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 12 changed files with 65 additions and 6 deletions (loading 9).

x
0 of 12 viewed, 12 left
3 additions and 1 deletionapps/web/src/components/settings/ConnectionsSettings.tsxModified
View file
@@ -1524,7 +1524,9 @@
) : null}
{environment.connection.error && !resumingServerUpdate ? (
<p className="flex min-w-0 items-center gap-2 text-destructive text-xs">
- <span className="truncate">{connectionStatusText(environment.connection)}</span>
+ <span className="min-w-0 break-words">
+ {connectionStatusText(environment.connection)}
+ </span>
{errorTraceId ? (
<button
type="button"
4 additions and 3 deletionspackages/client-runtime/src/authorization/service.tsModified
View file
@@ -80,9 +80,10 @@
​
const fetchDescriptor = Effect.fn("clientRuntime.connection.remote.fetchDescriptor")(function* (
httpBaseUrl: string,
+ connectionMethod: ClientConnectionMethod,
) {
return yield* fetchRemoteEnvironmentDescriptor({ httpBaseUrl }).pipe(
- Effect.mapError(mapRemoteEnvironmentError),
+ Effect.mapError((error) => mapRemoteEnvironmentError(error, connectionMethod)),
);
});
​
@@ -119,7 +120,7 @@
cachedDescriptor.validatedAtEpochMs + BEARER_DESCRIPTOR_CACHE_TTL_MS > now;