Skip to content

gh ado2gh inventory-report #12

@surajraja

Description

@surajraja

gh ado2gh inventory-report --ado-org https://dev.azure.com/usli

fails with this error

[2025-08-12 13:41:35] [INFO] You are running an up-to-date version of the ado2gh CLI [v1.18.0]
[2025-08-12 13:41:35] [INFO] ADO ORG: https://dev.azure.com/usli
[2025-08-12 13:41:35] [INFO] Creating inventory report...
[2025-08-12 13:41:35] [INFO] Finding Orgs...
[2025-08-12 13:41:35] [INFO] Found 1 Orgs
[2025-08-12 13:41:35] [INFO] Finding Team Projects...
[2025-08-12 13:41:35] [DEBUG] HTTP GET: https://dev.azure.com/https%3A%2F%2Fdev.azure.com%2Fusli/_apis/projects?api-version=6.1-preview
[2025-08-12 13:41:36] [DEBUG] RESPONSE (BadRequest): {"$id":"1","innerException":null,"message":"A potentially dangerous Request.Path value was detected from the client (:).","typeName":"System.Web.HttpException, System.Web","typeKey":"HttpException","errorCode":0,"eventId":0}
[2025-08-12 13:41:36] [ERROR] [HTTP ERROR 400] System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (Bad Request).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at OctoshiftCLI.Services.AdoClient.<>c__DisplayClass13_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Polly.Retry.AsyncRetryEngine.ImplementationAsync[TResult](Func3 action, Context context, CancellationToken cancellationToken, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates1 shouldRetryResultPredicates, Func5 onRetryAsync, Int32 permittedRetryCount, IEnumerable1 sleepDurationsEnumerable, Func4 sleepDurationProvider, Boolean continueOnCapturedContext) at Polly.AsyncPolicy.ExecuteAsync[TResult](Func3 action, Context context, CancellationToken cancellationToken, Boolean continueOnCapturedContext)
at OctoshiftCLI.RetryPolicy.HttpRetry[T](Func1 func, Func2 filter)
at OctoshiftCLI.Services.AdoClient.GetWithPagingAsync(String url, String continuationToken)
at OctoshiftCLI.Services.AdoClient.GetWithPagingAsync(String url)
at OctoshiftCLI.Services.AdoApi.GetTeamProjects(String org)
at OctoshiftCLI.AdoToGithub.AdoInspectorService.GetTeamProjects(String org)
at OctoshiftCLI.AdoToGithub.AdoInspectorService.GetTeamProjectCount(String org)
at OctoshiftCLI.AdoToGithub.AdoInspectorService.b__27_0(String o)
at OctoshiftCLI.Extensions.EnumerableExtensions.Sum[T](IEnumerable1 list, Func2 selector)
at OctoshiftCLI.AdoToGithub.AdoInspectorService.GetTeamProjectCount()
at OctoshiftCLI.AdoToGithub.Commands.InventoryReport.InventoryReportCommandHandler.Handle(InventoryReportCommandArgs args)
at OctoshiftCLI.Extensions.CommandExtensions.RunHandler[TArgs,THandler](TArgs args, ServiceProvider sp, CommandBase2 command) at OctoshiftCLI.Extensions.CommandExtensions.<>c__DisplayClass1_03.<b__0>d.MoveNext()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions