OperationAbortedException when running autorest
See original GitHub issueBefore filling a bug
- have you checked the faq for known issues.
- have you checked existing issues
Seems like this went in today.
We autogenerate based on our swagger in our automation.
npm install -g autorest
This started happening mid-day today (3/21/2022 - EDT).
Looks like @autorest/core 3.8.1 was published 4 hours ago.
+ autorest --python --openapi-type=arm --add-credentials=true --title=StorageCacheManagementClient --azure-arm=true --license-header=MICROSOFT_MIT_NO_VERSION --package-name=azure-mgmt-storagecache --no-namespace-folders=true --clear-output-folder=true --basic-setup-py=true --package-version=2022.0321.202731 --tag=tag-2021-11-01-preview --input-file=/tmp/azure-rest-api-specs/specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2021-11-01-preview/storagecache.json --level=DEBUG --output-folder=/tmp/pysdk/azure-mgmt-storagecache/azure/mgmt/storagecache
AutoRest code generation utility [cli version: 3.6.0; node: v16.14.1]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
/home/cloudtest/.autorest/@autorest_core@3.8.1/node_modules/@autorest/core/dist/src_lib_autorest-core_ts.js:12508
throw new common_1.OperationAbortedException();
^
Error: [OperationAbortedException] Error occurred. Exiting.
at parseAutorestCliArgs (/home/cloudtest/.autorest/@autorest_core@3.8.1/node_modules/@autorest/core/dist/src_lib_autorest-core_ts.js:12508:15)
at getCliArgs (/home/cloudtest/.autorest/@autorest_core@3.8.1/node_modules/@autorest/core/dist/app.js:330:53)
at main (/home/cloudtest/.autorest/@autorest_core@3.8.1/node_modules/@autorest/core/dist/app.js:277:24)
at Object../src/app.ts (/home/cloudtest/.autorest/@autorest_core@3.8.1/node_modules/@autorest/core/dist/app.js:333:6)
at __webpack_require__ (/home/cloudtest/.autorest/@autorest_core@3.8.1/node_modules/@autorest/core/dist/app.js:722:42)
at /home/cloudtest/.autorest/@autorest_core@3.8.1/node_modules/@autorest/core/dist/app.js:738:314
at Function.__webpack_require__.O (/home/cloudtest/.autorest/@autorest_core@3.8.1/node_modules/@autorest/core/dist/app.js:768:24)
at __webpack_require__.x (/home/cloudtest/.autorest/@autorest_core@3.8.1/node_modules/@autorest/core/dist/app.js:739:54)
at Function.__webpack_require__.x (/home/cloudtest/.autorest/@autorest_core@3.8.1/node_modules/@autorest/core/dist/app.js:895:20)
at /home/cloudtest/.autorest/@autorest_core@3.8.1/node_modules/@autorest/core/dist/app.js:902:57
at Object.<anonymous> (/home/cloudtest/.autorest/@autorest_core@3.8.1/node_modules/@autorest/core/dist/app.js:905:12)
at Module._compile (node:internal/modules/cjs/loader:1103:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/home/cloudtest/.autorest/@au
torest_core@3.8.1/node_modules/@autorest/core/entrypoints/app.js:2:1)
at Module._compile (node:internal/modules/cjs/loader:1103:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
[THREAD] PowerShell Generator - Quick Questions · Issue #153
I would like to ask if there is a configuration I can write in my readme.md config file before running the autorest command...
Read more >AutoRest Versioning
The Core module – when you run AutoRest, this is the component that handles all the loading of Swagger/OpenAPI files, connects the extensions...
Read more >Data does not match any schemas from 'oneOf' - Stack Overflow
I see from the Autorest docs that this warning is because of an supported ... due to exception : [OperationAbortedException] Error occurred.
Read more >autorest - npm
The AutoRest tool generates client libraries for accessing RESTful web services. Input to AutoRest is an OpenAPI spec that describes the ...
Read more >How to use AutoRest with RDP - Refinitiv Developer Community
Run the following command with the modified JSON file to generate a C# client library. autorest --input-file=auth_oauth2_mod.json --csharp ...
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
@rebecca-makar seems like this is due to
--level=DEBUG
not being a valid value. It expectdebug
(lowercase). It should however explain that instead of crashing like that.Yup. We are on an ubuntu pipeline agent. Looks like it is an error in our swagger.