[BUG] ExpiredAuthenticationToken when running the Extractor process at more than one hour
- Dominant language
- C#
- Stars
- 448
- Forks
- 247
- PR merge metrics
- No merged PRs in 30d
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
Contributor guide
Assessment
This issue has not been assessed yet.