Update client/src/lib/hooks/useConnection.ts
Adding fix for Via Proxy mode
This commit is contained in:
parent
e1886a8229
commit
36a7244f86
1 changed files with 7 additions and 1 deletions
|
|
@ -361,7 +361,13 @@ export function useConnection({
|
|||
(error instanceof SseError && error.code === 401) ||
|
||||
(error instanceof StreamableHTTPError && error.code === 401) ||
|
||||
(error instanceof Error && error.message.includes("401")) ||
|
||||
(error instanceof Error && error.message.includes("Unauthorized"))
|
||||
const is401Error = (error: unknown): boolean => {
|
||||
return (
|
||||
(error instanceof SseError && error.code === 401) ||
|
||||
(error instanceof StreamableHTTPError && error.code === 401) ||
|
||||
(error instanceof Error && error.message.includes("401")) ||
|
||||
(error instanceof Error && error.message.includes("Unauthorized")) ||
|
||||
(error instanceof Error && error.message.includes("Missing Authorization header"))
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue