Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[BUG] ExpiredAuthenticationToken when running the Extractor process at more than one hour

Open
#671 10 comments 0 reactions 0 assignees View on GitHub

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

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

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 Azure/apiops

All issues in Azure/apiops

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.