-
Notifications
You must be signed in to change notification settings - Fork 354
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
fix(llm): triggering proper error on CLS mobile disconnection #7979
fix(llm): triggering proper error on CLS mobile disconnection #7979
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ
4 Skipped Deployments
|
eb8c1e7
to
63bb486
Compare
timeout(5000), | ||
catchError(err => { | ||
if (err.name === "TimeoutError") { | ||
return throwError(() => new DisconnectedDevice()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The throwError
in operator is normally not necessary, look at here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @jiyuzhuang! I wrote that to show disconnection error after 5 seconds of timeout
@@ -213,6 +212,14 @@ export default function loadImage({ deviceId, request }: Input): Observable<Load | |||
sub.unsubscribe(); | |||
}; | |||
}), | |||
).pipe( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[ask] isn't it the purpose of the optional argument openTimeoutMs
of withDevice
?
63bb486
to
d2603b1
Compare
d2603b1
to
b89d1e1
Compare
β Checklist
npx changeset
was attached.π Description
β Context
π§ Checklist for the PR Reviewers