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

Capture expired token login #77

Open
maltevogl opened this issue Aug 15, 2022 · 0 comments
Open

Capture expired token login #77

maltevogl opened this issue Aug 15, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@maltevogl
Copy link

I am working on an interface for visualizing references and citations relations using the Dimensions API and have an edge case where I can not capture an expired login token. The message returned starts from this line

elif response.status_code == 403:

I would like to capture an error from dimcli.login(key=api_key) but instead the routine tries again to login with the expired token (self._refresh_login()).

What is the reason behind retrying after an 403 error? Could you give me any input on how to capture this? My code is here: https://gitlab.gwdg.de/modelsen/semanticlayertools/-/blob/main/src/semanticlayertools/visual/citationnet.py#L24

@lambdamusic lambdamusic added the enhancement New feature or request label Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants