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

AuthRepository is throwing InvalidCastException when refresh the access token failed. #788

Closed
pika-shiro opened this issue Dec 23, 2021 · 3 comments
Assignees

Comments

@pika-shiro
Copy link

Description of the Issue

Unable to cast object of type 'Box.V2.Exceptions.BoxAPIException' to type 'Box.V2.Exceptions.BoxSessionInvalidatedException'

Steps to Reproduce

Use a invalid refresh token to Refresh the access token.

Expected Behavior

https://github.com/box/box-windows-sdk-v2/blob/main/Box.V2/Exceptions/BoxAuthenticationFailedException.cs#L29
The 'ex' is BoxAPIException, cannot cast to BoxSessionInvalidatedException.

Versions Used

.Net 6.0
Windows 10
Box.V2.Core 4.1.0

@arjankowski
Copy link
Contributor

arjankowski commented Dec 23, 2021

Hi @ding-tea

Thanks for submitting this Issue! We will take a look and get back to you ASAP!

@arjankowski

@lukedubber
Copy link

Having the same issue as well. Thanks for all your hard work!

@stale
Copy link

stale bot commented Dec 19, 2022

This issue has been automatically marked as stale because it has not been updated in the last 30 days. It will be closed if no further activity occurs within the next 7 days. Feel free to reach out or mention Box SDK team member for further help and resources if they are needed.

@stale stale bot added the stale label Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants