You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warn: Kiota.Builder.KiotaBuilder[0]
could not find operation return type Get
Unhandled exception: System.AggregateException: One or more errors occurred. (Object reference not set to an instance of an object.) (One or more errors occurred. (One or more errors occurred. (Object reference not set to an instance of an object.)))
---> System.NullReferenceException: Object reference not set to an instance of an object.
at Kiota.Builder.KiotaBuilder.CreateProperty(String childIdentifier, String childType, CodeClass codeClass, String defaultValue, OpenApiSchema typeSchema, CodeElement typeDefinition, CodePropertyKind kind) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 449
at Kiota.Builder.KiotaBuilder.<>c__DisplayClass43_0.<CreatePropertiesForModelClass>b__0(KeyValuePair`2 x) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 733
at System.Linq.Enumerable.SelectEnumerableIterator`2.ToArray()
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at Kiota.Builder.KiotaBuilder.CreatePropertiesForModelClass(OpenApiUrlTreeNode currentNode, OpenApiSchema schema, CodeNamespace ns, CodeClass model, CodeElement parent) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 721
at Kiota.Builder.KiotaBuilder.CreatePropertiesForModelClass(OpenApiUrlTreeNode currentNode, OpenApiSchema schema, CodeNamespace ns, CodeClass model, CodeElement parent) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 738
at Kiota.Builder.KiotaBuilder.AddModelClass(OpenApiUrlTreeNode currentNode, OpenApiSchema schema, String declarationName, CodeNamespace currentNamespace, CodeElement parentElement, CodeClass inheritsFrom) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 714
at Kiota.Builder.KiotaBuilder.AddModelDeclarationIfDoesntExit(OpenApiUrlTreeNode currentNode, OpenApiSchema schema, String declarationName, CodeNamespace currentNamespace, CodeElement parentElement, CodeClass inheritsFrom, Boolean checkInAllNamespaces) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 695
at Kiota.Builder.KiotaBuilder.<>c__DisplayClass43_0.<CreatePropertiesForModelClass>b__0(KeyValuePair`2 x) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 731
at System.Linq.Enumerable.SelectEnumerableIterator`2.ToArray()
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at Kiota.Builder.KiotaBuilder.CreatePropertiesForModelClass(OpenApiUrlTreeNode currentNode, OpenApiSchema schema, CodeNamespace ns, CodeClass model, CodeElement parent) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 721
at Kiota.Builder.KiotaBuilder.AddModelClass(OpenApiUrlTreeNode currentNode, OpenApiSchema schema, String declarationName, CodeNamespace currentNamespace, CodeElement parentElement, CodeClass inheritsFrom) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 714
at Kiota.Builder.KiotaBuilder.AddModelDeclarationIfDoesntExit(OpenApiUrlTreeNode currentNode, OpenApiSchema schema, String declarationName, CodeNamespace currentNamespace, CodeElement parentElement, CodeClass inheritsFrom, Boolean checkInAllNamespaces) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 695
at Kiota.Builder.KiotaBuilder.CreateModelDeclarationAndType(OpenApiUrlTreeNode currentNode, OpenApiSchema schema, OpenApiOperation operation, CodeElement parentElement, CodeNamespace codeNamespace, String classNameSuffix) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 605
at Kiota.Builder.KiotaBuilder.CreateModelDeclarations(OpenApiUrlTreeNode currentNode, OpenApiSchema schema, OpenApiOperation operation, CodeElement parentElement) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 655
at Kiota.Builder.KiotaBuilder.CreateOperationMethods(OpenApiUrlTreeNode currentNode, OperationType operationType, OpenApiOperation operation, CodeClass parentClass) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 494
at Kiota.Builder.KiotaBuilder.CreateRequestBuilderClass(CodeNamespace currentNamespace, OpenApiUrlTreeNode currentNode, OpenApiUrlTreeNode rootNode) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 265
at Kiota.Builder.KiotaBuilder.<>c__DisplayClass18_0.<CreateRequestBuilderClass>b__0(OpenApiUrlTreeNode childNode) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 277
at System.Threading.Tasks.Parallel.<>c__DisplayClass44_0`2.<PartitionerForEachWorker>b__1(IEnumerator& partitionState, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Parallel.<>c__DisplayClass44_0`2.<PartitionerForEachWorker>b__1(IEnumerator& partitionState, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica`1.ExecuteAction(Boolean& yieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica.Execute()
--- End of inner exception stack trace ---
at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction`1 action, ParallelOptions options, Boolean stopOnFirstFailure)
at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner`1 source, ParallelOptions parallelOptions, Action`1 simpleBody, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Parallel.ThrowSingleCancellationExceptionOrOtherException(ICollection exceptions, CancellationToken cancelToken, Exception otherException)
at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner`1 source, ParallelOptions parallelOptions, Action`1 simpleBody, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, Action`1 body)
at Kiota.Builder.KiotaBuilder.CreateRequestBuilderClass(CodeNamespace currentNamespace, OpenApiUrlTreeNode currentNode, OpenApiUrlTreeNode rootNode) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 271
at Kiota.Builder.KiotaBuilder.CreateSourceModel(OpenApiUrlTreeNode root) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 167
at Kiota.Builder.KiotaBuilder.GenerateSDK() in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 63
at Kiota.KiotaHost.HandleCommandCall(String output, Nullable`1 language, String openapi, String backingstore, String classname, LogLevel loglevel, String namespacename, List`1 serializer, List`1 deserializer) in /app/kiota/src/kiota/KiotaHost.cs:line 98
at System.CommandLine.Invocation.CommandHandler.GetResultCodeAsync(Object value, InvocationContext context)
at System.CommandLine.Invocation.ModelBindingCommandHandler.InvokeAsync(InvocationContext context)
at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseParseErrorReporting>b__21_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<<UseHelp>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass25_0.<<UseVersionOption>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass23_0.<<UseTypoCorrections>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__22_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseParseDirective>b__20_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseDebugDirective>b__11_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__10_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass14_0.<<UseExceptionHandler>b__0>d.MoveNext()
---> (Inner Exception #1) System.AggregateException: One or more errors occurred. (One or more errors occurred. (Object reference not set to an instance of an object.))
---> System.AggregateException: One or more errors occurred. (Object reference not set to an instance of an object.)
---> System.NullReferenceException: Object reference not set to an instance of an object.
at Kiota.Builder.KiotaBuilder.CreateProperty(String childIdentifier, String childType, CodeClass codeClass, String defaultValue, OpenApiSchema typeSchema, CodeElement typeDefinition, CodePropertyKind kind) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 449
at Kiota.Builder.KiotaBuilder.<>c__DisplayClass43_0.<CreatePropertiesForModelClass>b__0(KeyValuePair`2 x) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 733
at System.Linq.Enumerable.SelectEnumerableIterator`2.ToArray()
at Kiota.Builder.KiotaBuilder.CreatePropertiesForModelClass(OpenApiUrlTreeNode currentNode, OpenApiSchema schema, CodeNamespace ns, CodeClass model, CodeElement parent) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 721
at Kiota.Builder.KiotaBuilder.AddModelClass(OpenApiUrlTreeNode currentNode, OpenApiSchema schema, String declarationName, CodeNamespace currentNamespace, CodeElement parentElement, CodeClass inheritsFrom) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 714
at Kiota.Builder.KiotaBuilder.AddModelDeclarationIfDoesntExit(OpenApiUrlTreeNode currentNode, OpenApiSchema schema, String declarationName, CodeNamespace currentNamespace, CodeElement parentElement, CodeClass inheritsFrom, Boolean checkInAllNamespaces) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 695
at Kiota.Builder.KiotaBuilder.<>c__DisplayClass43_0.<CreatePropertiesForModelClass>b__0(KeyValuePair`2 x) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 731
at System.Linq.Enumerable.SelectEnumerableIterator`2.ToArray()
at Kiota.Builder.KiotaBuilder.CreatePropertiesForModelClass(OpenApiUrlTreeNode currentNode, OpenApiSchema schema, CodeNamespace ns, CodeClass model, CodeElement parent) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 721
at Kiota.Builder.KiotaBuilder.AddModelClass(OpenApiUrlTreeNode currentNode, OpenApiSchema schema, String declarationName, CodeNamespace currentNamespace, CodeElement parentElement, CodeClass inheritsFrom) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 714
at Kiota.Builder.KiotaBuilder.AddModelDeclarationIfDoesntExit(OpenApiUrlTreeNode currentNode, OpenApiSchema schema, String declarationName, CodeNamespace currentNamespace, CodeElement parentElement, CodeClass inheritsFrom, Boolean checkInAllNamespaces) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 695
at Kiota.Builder.KiotaBuilder.<>c__DisplayClass43_0.<CreatePropertiesForModelClass>b__0(KeyValuePair`2 x) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 731
at System.Linq.Enumerable.SelectEnumerableIterator`2.ToArray()
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at Kiota.Builder.KiotaBuilder.CreatePropertiesForModelClass(OpenApiUrlTreeNode currentNode, OpenApiSchema schema, CodeNamespace ns, CodeClass model, CodeElement parent) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 721
at Kiota.Builder.KiotaBuilder.AddModelClass(OpenApiUrlTreeNode currentNode, OpenApiSchema schema, String declarationName, CodeNamespace currentNamespace, CodeElement parentElement, CodeClass inheritsFrom) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 714
at Kiota.Builder.KiotaBuilder.AddModelDeclarationIfDoesntExit(OpenApiUrlTreeNode currentNode, OpenApiSchema schema, String declarationName, CodeNamespace currentNamespace, CodeElement parentElement, CodeClass inheritsFrom, Boolean checkInAllNamespaces) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 695
at Kiota.Builder.KiotaBuilder.CreateModelDeclarationAndType(OpenApiUrlTreeNode currentNode, OpenApiSchema schema, OpenApiOperation operation, CodeElement parentElement, CodeNamespace codeNamespace, String classNameSuffix) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 605
at Kiota.Builder.KiotaBuilder.CreateModelDeclarations(OpenApiUrlTreeNode currentNode, OpenApiSchema schema, OpenApiOperation operation, CodeElement parentElement) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 655
at Kiota.Builder.KiotaBuilder.AddRequestBuilderMethodParameters(OpenApiUrlTreeNode currentNode, OpenApiOperation operation, CodeClass parameterClass, CodeMethod method) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 535
at Kiota.Builder.KiotaBuilder.CreateOperationMethods(OpenApiUrlTreeNode currentNode, OperationType operationType, OpenApiOperation operation, CodeClass parentClass) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 506
at Kiota.Builder.KiotaBuilder.CreateRequestBuilderClass(CodeNamespace currentNamespace, OpenApiUrlTreeNode currentNode, OpenApiUrlTreeNode rootNode) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 265
at Kiota.Builder.KiotaBuilder.<>c__DisplayClass18_0.<CreateRequestBuilderClass>b__0(OpenApiUrlTreeNode childNode) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 277
at System.Threading.Tasks.Parallel.<>c__DisplayClass44_0`2.<PartitionerForEachWorker>b__1(IEnumerator& partitionState, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Parallel.<>c__DisplayClass44_0`2.<PartitionerForEachWorker>b__1(IEnumerator& partitionState, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica`1.ExecuteAction(Boolean& yieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica.Execute()
--- End of inner exception stack trace ---
at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction`1 action, ParallelOptions options, Boolean stopOnFirstFailure)
at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner`1 source, ParallelOptions parallelOptions, Action`1 simpleBody, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Parallel.ThrowSingleCancellationExceptionOrOtherException(ICollection exceptions, CancellationToken cancelToken, Exception otherException)
at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner`1 source, ParallelOptions parallelOptions, Action`1 simpleBody, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, Action`1 body)
at Kiota.Builder.KiotaBuilder.CreateRequestBuilderClass(CodeNamespace currentNamespace, OpenApiUrlTreeNode currentNode, OpenApiUrlTreeNode rootNode) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 271
at Kiota.Builder.KiotaBuilder.<>c__DisplayClass18_0.<CreateRequestBuilderClass>b__0(OpenApiUrlTreeNode childNode) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 277
at System.Threading.Tasks.Parallel.<>c__DisplayClass44_0`2.<PartitionerForEachWorker>b__1(IEnumerator& partitionState, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Parallel.<>c__DisplayClass44_0`2.<PartitionerForEachWorker>b__1(IEnumerator& partitionState, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica`1.ExecuteAction(Boolean& yieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica.Execute()
--- End of inner exception stack trace ---
at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction`1 action, ParallelOptions options, Boolean stopOnFirstFailure)
at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner`1 source, ParallelOptions parallelOptions, Action`1 simpleBody, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Parallel.ThrowSingleCancellationExceptionOrOtherException(ICollection exceptions, CancellationToken cancelToken, Exception otherException)
at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner`1 source, ParallelOptions parallelOptions, Action`1 simpleBody, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, Action`1 body)
at Kiota.Builder.KiotaBuilder.CreateRequestBuilderClass(CodeNamespace currentNamespace, OpenApiUrlTreeNode currentNode, OpenApiUrlTreeNode rootNode) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 271
at Kiota.Builder.KiotaBuilder.<>c__DisplayClass18_0.<CreateRequestBuilderClass>b__0(OpenApiUrlTreeNode childNode) in /app/kiota/src/Kiota.Builder/KiotaBuilder.cs:line 277
at System.Threading.Tasks.Parallel.<>c__DisplayClass44_0`2.<PartitionerForEachWorker>b__1(IEnumerator& partitionState, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Parallel.<>c__DisplayClass44_0`2.<PartitionerForEachWorker>b__1(IEnumerator& partitionState, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica`1.ExecuteAction(Boolean& yieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica.Execute()<---
Hey @waldekmastykarz thanks for reporting this issue! I authored PR #479 which fixes it and will close it when merged. After that we'll need to release a new version of the docker image, I'll probably bundle it with a few other fixes/improvements.
When trying to generate TypeScript SDK by calling (on macOS; on Windows you might need to replace
${PWD}
with the absolute local path):you get the following error:
AB#10437
The text was updated successfully, but these errors were encountered: