Fix token renewal

Open
#117 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
jupyter-notebook, python

Research direction

Start with the ModelManagerClient token-renewal path and inspect how the expires attribute is used. Reproduce the issue by reusing a client from a previous session and executing a request; done means an expired token is renewed automatically and the request no longer returns 401.

Written by the indexing model from the issue text.

Description

bug

This morning, I picked up a Jupyter notebook from last night. When executing requests with a ModelManagerClient instance created yesterday, I received 401 errors.

It seems that the code to renew the token automatically based on the expires attribute does not work as intended.

Dominant language
Jupyter Notebook
Stars
20
Forks
6
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SAP/data-attribute-recommendation-python-sdk

All issues in SAP/data-attribute-recommendation-python-sdk

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.