Comments (7)
@meichhorn-conet Would you provide more details about how to reproduce the issue?
from autorest.powershell.
How can I turn on advanced logging so that i can see which class is current processed and leads to this error?
from autorest.powershell.
How can I turn on advanced logging so that i can see which class is current processed and leads to this error?
Not just logs. I need steps to reproduce issue. Generally speaking please provider swagger, and how you generate the module.
from autorest.powershell.
First time using AutoRest, getting the error too. Using this OpenAPI spec. Generating with:
autorest --powershell --input-file:openapi.json --output-folder:foo
from autorest.powershell.
@dolauli In my case, i cannot share the whole schema.json because this a private api.
The stacktrace says a single class cant be generated. With that class name, i can try reproduce this error with a simple api and without ip.
how can i turn on this log to get the class name?
from autorest.powershell.
@dolauli In my case, i cannot share the whole schema.json because this a private api.
The stacktrace says a single class cant be generated. With that class name, i can try reproduce this error with a simple api and without ip.
how can i turn on this log to get the class name?
Log will not help lot here. You will not need to provide your private swagger to me, but you could just write a swagger that could reproduce the issue and meanwhile hiding your business info.
from autorest.powershell.
I'm getting basically the same error for this Azure DevOps Artifacts Feed swagger.
I run this command autorest --input-file=feed.json --powershell --verbose
I get this error:
C:\Users\atodw\.autorest\@[email protected]\node_modules\@autorest\powershell\dist\plugins\llcsharp-v2.js - TypeError: Cannot read property 'fullName' of undefined
at ModelClass.handleAllOf (C:\Users\atodw\.autorest\@[email protected]\node_modules\@autorest\powershell\llcsharp\model\model-class.ts:413:37)
at new ModelClass (C:\Users\atodw\.autorest\@[email protected]\node_modules\@autorest\powershell\llcsharp\model\model-class.ts:142:15)
at ModelsNamespace.NewResolveTypeDeclaration (C:\Users\atodw\.autorest\@[email protected]\node_modules\@autorest\powershell\llcsharp\model\namespace.ts:104:67)
at new ModelsNamespace (C:\Users\atodw\.autorest\@[email protected]\node_modules\@autorest\powershell\llcsharp\model\namespace.ts:53:14)
at Project.init (C:\Users\atodw\.autorest\@[email protected]\node_modules\@autorest\powershell\llcsharp\project.ts:85:28)
at llcsharpV2 (C:\Users\atodw\.autorest\@[email protected]\node_modules\@autorest\powershell\plugins\llcsharp-v2.ts:18:21)
at C:\Users\atodw\.autorest\@[email protected]\node_modules\@azure-tools\autorest-extension-base\extension-base.ts:68:9/Cannot read property 'fullName' of undefined
fatal | TypeError: Cannot read property 'fullName' of undefined
fatal | Process() cancelled due to failure
error | Error: Plugin llcsharp-v2 reported failure.
error | Autorest completed with an error. If you think the error message is unclear, or is a bug, please declare an issues at https://github.com/Azure/autorest/issues with the error message you are seeing.
Is there some way to get a better error message? I feel like it's common to get errors but not sure if it's the tool or the swaggers/openapi specs that are at fault. Either way it would be nice if the tool didn't crash if it can't complete everything, if just one route or model is wrong in the whole spec then it could be a warning instead perhaps?
from autorest.powershell.
Related Issues (20)
- In V4 the generated extended command is missing parameters
- Move some generated files from root folder to subfolder HOT 1
- [Feature] Validate directives
- Need a way to sleep in the test script HOT 3
- Build-module will overwrite updated example files when renaming.
- Media content-type header is not being generated for input file types. HOT 3
- [Autorest] optional parameter is set to be required in VMware swagger
- Module will be created and inited many times in one session when `-Parallel` is used. HOT 2
- Monitor Metric Get-AzMetricsBatch encode name parameter twice HOT 1
- [Feature] Generate cmdlet to Add/remove elements for a complex array parameter HOT 1
- [Feature] Generate parameter description with possbile values. HOT 2
- Parameter Capability is an array, enum is the items, value should be generated HOT 2
- build-module.ps1 - The parameter 'Body' has multiple parameter types HOT 1
- Dockerfile needs updating HOT 2
- Test-Module: Import Az.Accounts should not be required HOT 3
- Infinite recursion issue when traversing object properties HOT 2
- Remove use of write-information as it pollutes information stream when loading Az-modules
- format url is invalid type when generating with autorest 3.x HOT 2
- Add support for 'operation-location' for dataplane LRO(Long Running Operations) HOT 2
- Module fails to build due to duplicate definitions HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autorest.powershell.