apiops: [BUG] Diagnostics returning 500
Release version
APIOps Toolkit for Azure APIM v4.0.4
Describe the bug
Running the tool against our APIM instance is failing with a 500 Internal Service error. I have tried disabling the diagnostic settings to remove them from the equation but the extract still fails.
Expected behavior
Export to complete successfully.
Actual behavior
Export is failing with error:
Microsoft.Extensions.Hosting.Internal.Host[9]
BackgroundService failed
System.InvalidOperationException: HTTP request to URI https://management.azure.com/subscriptions/{tenentId}/resourceGroups/{rg}/providers/Microsoft.ApiManagement/service/{apim instance}/diagnostics?api-version=2021-12-01-preview failed with status code 500. Content is '{"error":{"code":"InternalServerError","message":"Request processing failed due to internal error.","details":null}}'.
at common.HttpPipelineExtensions.Validate(Response response, Uri requestUri)
at common.HttpPipelineExtensions.GetContent(HttpPipeline pipeline, Uri uri, CancellationToken cancellationToken)
at common.HttpPipelineExtensions.GetJsonObject(HttpPipeline pipeline, Uri uri, CancellationToken cancellationToken)
at common.HttpPipelineExtensions.ListJsonObjects(HttpPipeline pipeline, Uri uri, CancellationToken cancellationToken)+MoveNext()
at common.HttpPipelineExtensions.ListJsonObjects(HttpPipeline pipeline, Uri uri, CancellationToken cancellationToken)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult()
at System.Linq.AsyncEnumerable.SelectEnumerableAsyncIterator`2.MoveNextCore() in /_/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Select.cs:line 232
at System.Linq.AsyncIteratorBase`1.MoveNextAsync() in /_/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncIterator.cs:line 77
at System.Linq.AsyncIteratorBase`1.MoveNextAsync() in /_/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncIterator.cs:line 77
at System.Threading.Tasks.Parallel.<>c__54`1.<<ForEachAsync>b__54_0>d.MoveNext()
--- End of stack trace from previous location ---
at common.IAsyncEnumerableExtensions.ForEachParallel[T](IAsyncEnumerable`1 enumerable, Func`2 action, CancellationToken cancellationToken)
at extractor.Diagnostic.ExportAll(ServiceDirectory serviceDirectory, ServiceUri serviceUri, ListRestResources listRestResources, GetRestResource getRestResource, ILogger logger, CancellationToken cancellationToken)
at extractor.Service.Export(ServiceDirectory serviceDirectory, ServiceUri serviceUri, DefaultApiSpecification defaultSpecification, IEnumerable`1 apiNamesToExport, ListRestResources listRestResources, GetRestResource getRestResource, DownloadResource downloadResource, ILogger logger, CancellationToken cancellationToken)
at extractor.Extractor.ExportService(CancellationToken cancellationToken)
at extractor.Extractor.ExecuteAsync(CancellationToken cancellationToken)
at Microsoft.Extensions.Hosting.Internal.Host.TryExecuteBackgroundServiceAsync(BackgroundService backgroundService)
Reproduction Steps
Run: .\Extractor\extractor.win-x64.exe --AZURE_SUBSCRIPTION_ID "" --AZURE_RESOURCE_GROUP_NAME "" --API_MANAGEMENT_SERVICE_NAME "" --API_MANAGEMENT_SERVICE_OUTPUT_FOLDER_PATH ./
Values redacted in this command.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 15 (8 by maintainers)
Not to my knowledge. Will update here once we hear back. Che Keith us if we don’t get back within a week or so.