apiops icon indicating copy to clipboard operation
apiops copied to clipboard

Extractor error writing policy file - JSON object does not have a property named 'value'

Open ToddHamptonGit opened this issue 1 month ago • 2 comments

Release version

v7.0.0-alpha.1.0.2

Describe the bug

Extractor fails when pulling operation policy from API. This occurred on unmodified Echo API. Premium v2 instance.

Expected behavior

Extractor should log and move on if error for missing property "value" ?

Actual behavior

info: extractor[0] Writing policy file for apis/echo-api/operations/retrieve-header-only/policies/policy... crit: extractor[0] Extractor failed. Please check the logs for more details. System.InvalidOperationException: Property 'value' is invalid. JSON object does not have a property named 'value'. at common.Result.<>c__131.<IfErrorThrow>b__13_1(Error error) in /home/runner/work/apiops/apiops/src/common/Result.cs:line 206 at common.Result1.Match[TResult](Func2 onSuccess, Func2 onError) in /home/runner/work/apiops/apiops/src/common/Result.cs:line 52 at common.Result.IfErrorThrow[T](Result`1 result) in /home/runner/work/apiops/apiops/src/common/Result.cs:line 205 at common.ResourceModule.<>c__DisplayClass5_0.<<ResolveGetApiSpecificationFromApim>g__getSpecificationContents|3>d.MoveNext() in /home/runner/work/apiops/apiops/src/common/ApiSpecification.cs:line 236 --- End of stack trace from previous location ---

Reproduction Steps

Ran extractor on v7.0.0-alpha.1.0.2 for the first time.

ToddHamptonGit avatar Nov 21 '25 00:11 ToddHamptonGit

  Thank you for opening this issue! Please be patient while we will look into it and get back to you as this is an open source project. In the meantime make sure you take a look at the [closed issues](https://github.com/Azure/apiops/issues?q=is%3Aissue+is%3Aclosed) in case your question has already been answered. Don't forget to provide any additional information if needed (e.g. scrubbed logs, detailed feature requests,etc.).
  Whenever it's feasible, please don't hesitate to send a Pull Request (PR) our way. We'd greatly appreciate it, and we'll gladly assess and incorporate your changes.

github-actions[bot] avatar Nov 21 '25 00:11 github-actions[bot]

Thank you @ToddHamptonGit . Investigating.

guythetechie avatar Nov 21 '25 14:11 guythetechie

Fixed in this release.

guythetechie avatar Dec 03 '25 16:12 guythetechie