Skip to content
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

Handling of http status code 499 - 'Client Closed Request' #49

Open
kaiaschulz opened this issue Jan 20, 2025 · 0 comments
Open

Handling of http status code 499 - 'Client Closed Request' #49

kaiaschulz opened this issue Jan 20, 2025 · 0 comments

Comments

@kaiaschulz
Copy link
Collaborator

Using the AzADServicePrincipalInsights-product is causing the following issue:

[AzAPICallErrorHandler 1.2.0] Getting MI USER federatedCreds: 'MI: ManagedIdentityNameXXX' 'SubscriptionNameZZZ' ('11111111-2222-3333-4444-555555555555') [quotaId:'EnterpriseAgreement_2014-09-01'] try #1; uri:"https://management.azure.com//subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/ResourceGroupNameZZZ/providers/Microsoft.ManagedIdentity/userAssignedIdentities/ManagedIdentityNameXXX/federatedIdentityCredentials?api-version=2022-01-31-PREVIEW"; return: (StatusCode: '499' (499)) <.code: ''> <.error.code: '499'> | <.message: ''> <.error.message: 'Client Closed Request'>  - unhandledErrorAction: Stop
Exception: /agent/_work/1/s/pwsh/AzAdServicePrincipalInsights.ps1:718
Line |
 718 |          $subsToProcessInCustomDataCollectionBatch | ForEach-Object -P …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Error - check the last console output for details

##[error]PowerShell exited with code '1'.

Might a re-try with sleep can help to receive the needed information?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant