Cancelled due to exception : Plugin imodeler1 reported failure
See original GitHub issueCan’t generate csharp code after update to 2.0.4215:
PS C:\src\autorest> autorest --input-file=http://localhost:31000/swagger/v1/swagger.json --csharp --output-folder=RestClient --namespace=DistributedTest.Core.RestClient --preview
AutoRest code generation utility [version: 2.0.4215]
(C) 2017 Microsoft Corporation.
https://aka.ms/autorest
No configuration found at 'file:///C:/src/autorest/'.
Installing AutoRest extension '@microsoft.azure/autorest.csharp' (~2.2.45)
Installing AutoRest extension '@microsoft.azure/autorest.modeler' (2.3.38)
FATAL: System.NullReferenceException: Object reference not set to an instance of an object.
at AutoRest.Modeler.ObjectBuilder.BuildServiceType(String serviceTypeName, Boolean required) in C:\Users\ci\AppData\Local\Temp\PUBLISH8kiit\38_20171116T010915\autorest.modeler\src\ObjectBuilder.cs:line 49
at AutoRest.Modeler.ParameterBuilder.ParentBuildServiceType(String serviceTypeName, Boolean required) in C:\Users\ci\AppData\Local\Temp\PUBLISH8kiit\38_20171116T010915\autorest.modeler\src\ParameterBuilder.cs:line
97
at AutoRest.Modeler.ParameterBuilder.BuildServiceType(String serviceTypeName, Boolean required) in C:\Users\ci\AppData\Local\Temp\PUBLISH8kiit\38_20171116T010915\autorest.modeler\src\ParameterBuilder.cs:line 94
at AutoRest.Modeler.ParameterBuilder.Build() in C:\Users\ci\AppData\Local\Temp\PUBLISH8kiit\38_20171116T010915\autorest.modeler\src\ParameterBuilder.cs:line 54
at AutoRest.Modeler.OperationBuilder.BuildMethodParameters(Method method) in C:\Users\ci\AppData\Local\Temp\PUBLISH8kiit\38_20171116T010915\autorest.modeler\src\OperationBuilder.cs:line 276
at AutoRest.Modeler.OperationBuilder.BuildMethod(HttpMethod httpMethod, String url, String methodName, String methodGroup) in C:\Users\ci\AppData\Local\Temp\PUBLISH8kiit\38_20171116T010915\autorest.modeler\src\Ope
rationBuilder.cs:line 86
at AutoRest.Modeler.SwaggerModeler.BuildMethod(HttpMethod httpMethod, String url, String name, Operation operation) in C:\Users\ci\AppData\Local\Temp\PUBLISH8kiit\38_20171116T010915\autorest.modeler\src\SwaggerMod
eler.cs:line 327
at AutoRest.Modeler.SwaggerModeler.Build(ServiceDefinition serviceDefinition) in C:\Users\ci\AppData\Local\Temp\PUBLISH8kiit\38_20171116T010915\autorest.modeler\src\SwaggerModeler.cs:line 105
at AutoRest.Modeler.Program.<ProcessInternal>d__2.MoveNext() in C:\Users\ci\AppData\Local\Temp\PUBLISH8kiit\38_20171116T010915\autorest.modeler\src\Program.cs:line 60
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NewPlugin.<Process>d__15.MoveNext()
FATAL: csharp/imodeler1 - FAILED
FATAL: Error: Plugin imodeler1 reported failure.
Process() Cancelled due to exception : Plugin imodeler1 reported failure.
Error: Plugin imodeler1 reported failure.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Error: Plugin imodeler1 reported failure ... - GitHub
I get the following error: AutoRest code generation utility ... Process() cancelled due to exception : Plugin imodeler1 reported failure.
Read more >Time Series Insight AutoRest Error: Plugin model-validator ...
Process() cancelled due to exception : Plugin model-validator reported failure. Error: Plugin model-validator reported failure.
Read more >logs.txt - NET
InvalidOperationException: Swagger document contains two or more x-ms-enum ... Process() cancelled due to exception : Plugin imodeler1 reported failure.
Read more >Could Not Register Pre-Delete Validatation Plugin Step For ...
MoveNext() FATAL: typescript/imodeler1 - FAILED FATAL: Error: Plugin imodeler1 reported failure. Process() cancelled due to exception : Plugin.
Read more >c#:致命:所有操作均需要OperationId請為路徑的"获取"操作添加它 ...
Process() cancelled due to exception : Plugin imodeler1 reported failure. Error: Plugin imodeler1 reported failure. 我註意到swagger.json没有提及operationId.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I found that strategyArgs in my code is Dictionary<string,string>. And it is generated as object in swagger. I understand, that this may be wrong, but the error should be easier to understand. I updated my API to accept List of typed objects instead of dictionary and generation works
Sounds like the issue is resolved, will close 🙂 You’re absolutely right about the better error message, tracked that here.