node-red-nodegen
node-red-nodegen copied to clipboard
The default sample is failing node-red-nodegen http://petstore.swagger.io/v2/swagger.json
What are the steps to reproduce?
Used the sample in your readme node-red-nodegen http://petstore.swagger.io/v2/swagger.json
What happens?
Error: TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received an instance of Object
TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received an instance of Object
at validateString (internal/validators.js:124:11)
at Url.parse (url.js:159:3)
at Object.urlParse [as parse] (url.js:154:13)
at dispatchHttpRequest (C:\dev\node red\node-red-nodegen\node_modules\axios\lib\adapters\http.js:66:22)
at new Promise (
What do you expect to happen?
It should generate nodes
Please tell us about your environment:
- [x] Node generator version: 0.1.0
- [x] Node-RED version:Node-RED v1.2.6
- [x] Node.js version:v14.15.1
- [x] npm version:.14.8
- [x] Platform/OS: windows 10 Version 10.0.19042.746
- [x] Browser: edge
The sample is working just fine for me using ubuntu.
Maybe you need the extra step for Windows. Have a look at https://kazuhitoyokoi.medium.com/procedures-to-develop-node-red-node-from-openapi-document-8685fdc7e90a