-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Server failed to authenticate the request. on docker App service with Managed identity after 24 hours #23224
Comments
@ksstott , The code seems fine. The issue could be caused by several different reasons. I'll try to run a sample for 24hours to see whether I can repro it. If the issue is reproduced in your side, could you share the exception info (as you have pasted above) for the most recent repro? I'll try to take a look in service side to find out why it returns 403 error. Thanks |
Hi @EmmaZhu Thanks for getting back so quickly. The exception pasted above was from yesterday afternoon within the hour before I posted this issue so it is the latest repro (it'll happen again later when it gets to 24 hours again). Is there any particular extra exception info that you need in addition to what I've pasted above? Thanks |
@ksstott , The exception was thrown at 2022-09-11T21:39:46.1437207Z, logs the request has been rolled out. Usually, service would keep logs for request for about 3 days. Could you share a more recent repro? Thanks |
Ah, that's App insights bunching together all the similar errors together and me not noticing that I'd selected one that was a few days old. Apologies, here is one that is from yesterday when it last occurred.
|
The failure is because the token has been expired. @jeremymeng , Could you help to take a look at this issue? Seems |
@ksstott for @azure/identity are you using the exact version |
Yes digging out the lock file from the docker image we have deployed we are indeed using v2.1.0. We're going to trial version 3 over the weekend and see if the issue disappears. Will come back to you next week with our findings |
Hi After switching to version 3 and letting it run for a while we've had no issues. Thank you for your responses |
Describe the bug
We are using @azure/identity & @azure/storage-queue packages within a typescript azure functions application to do custom querying on a queue that we cannot do via a regular binding. This functions app is deployed to an app service as a docker container and configured to use a managed identity which has the correct permissions on the storage account. Our typescript looks like this:
This code is running fine however after approximately 24 hours this code starts failing with the following exception
I'm not sure if this is an issue with app services or an issue with one of the SDKs or an issue with the way we're creating the
QueueServiceClient
statically outside of the function. I could not find any information in the docs which said what sort of lifetime you should expect from theQueueServiceClient
class.The text was updated successfully, but these errors were encountered: