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

Handle error responses on refresh token requests #422

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

orgads
Copy link
Contributor

@orgads orgads commented Apr 8, 2024

If error 403 is returned, the application crashes without any way to catch this error.

Fixes #421.

If error 403 is returned, the application crashes without any way
to catch this error.

Fixes microsoft#421.
@orgads orgads requested a review from a team as a code owner April 8, 2024 14:58
@@ -669,6 +669,9 @@ export class DirectLine implements IBotConnection {
.subscribe(token => {
konsole.log("refreshing token", token, "at", new Date());
this.token = token;
},
(error: any) => {
konsole.log("refresh token failed at", new Date(), "Error:", error);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if there is a way to propagate the error...

@orgads
Copy link
Contributor Author

orgads commented Apr 8, 2024

cc @yoshigev

@stevkan stevkan requested a review from compulim July 24, 2024 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Application crashes when refresh token returns an error
1 participant