[BUG] ExpiredAuthenticationToken when running the Extractor process at more than one hour
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- azure, csharp
- Domain
- api, authentication, cloud
Research direction
Start with the Extractor process and its Azure API Management requests, especially the management API call shown for the tags endpoint. Reproduce an extraction that runs longer than one hour and trace how authentication is handled after the token expires; done means the full extraction completes successfully without an ExpiredAuthenticationToken failure.
Written by the indexing model from the issue text.
Description
Release version
6.0.1.1
Describe the bug
Hello,
I´m running the extractor from APIM with many objects (apis, version sets, policies fragments, ...) and the extraction is during more than one hour and because this is broken.
The message is like this: System.Net.Http.HttpRequestException: HTTP request to URI
https://management.azure.com/subscriptions/***/resourceGroups/rg-abcd-dev-001/providers/Microsoft.ApiManagement/service/apim-abcd-dev-001/apis/api-xpto/tags?api-version=2023-09-01-preview failed with status code 401. Content is '{"error":{"code":"ExpiredAuthenticationToken","message":"The access token expiry UTC time '9/20/2024 4:01:35 AM' is earlier than current UTC time '9/20/2024 4:01:35 AM'."}}'.
====
Summary:
{"code":"ExpiredAuthenticationToken","message":"The access token expiry UTC time '9/20/2024 4:01:35 AM' is earlier than current UTC time '9/20/2024 4:01:35 AM'."}
````###
### Expected behavior
Full extraction completed successfuly
### Actual behavior
The process is running to more than one hour and i´m reaceiving the access token expiry massage with ExpiredAuthenticationToken code.
{"code":"ExpiredAuthenticationToken","message":"The access token expiry UTC time '9/20/2024 4:01:35 AM' is earlier than current UTC time '9/20/2024 4:01:35 AM'."}
### Reproduction Steps
Just Running the Extractor
- Dominant language
- C#
- Stars
- 448
- Forks
- 247
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure/apiops
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 70/100
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
nightscout/nocturne#1425 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Documentation
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
cake-build/cake#5024 ·
-
Frontend status/draft TechnicalDebt
Difficulty 2/5 1-2 days Newbie friendliness 75/100
Altinn/altinn-auth#4143 ·