node-red-nodegen icon indicating copy to clipboard operation
node-red-nodegen copied to clipboard

TypeError: this.setAuthHeaders is not a function

Open franck-malka opened this issue 2 years ago • 0 comments

After generating a node from a swagger file with nodered generator and when i try to execute a POST request from the new node, i get the following error: "TypeError: this.setAuthHeaders is not a function" Anyone has a hint.

to reproduce

node-red-nodegen /swagger/capif-cf.json
npm install /usr/src/node-red/node-red-contrib-capif-cf

the node is created with no errors and it is added to the node-red instance node-red-nodegen version: v0.2.4 Node-RED version: v3.1.0 Node.js version: v16.20.2 Linux 5.15.0-84-generic x64 LE npm version: 8.19.4

franck-malka avatar Sep 27 '23 15:09 franck-malka