node-red / node-red-nodegen

Command line tool to convert Node-RED function node, Swagger document, or WoT Thing Description to a custom Node.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error handling does not bring error message

crackytsi opened this issue · comments

What are the steps to reproduce?

  • Create a node from as swagger file
  • Return from the endpoint a 403 error with a JSON Response

What happens?

  • A debug entry is generated, but with empty string, no json response at all.
    image
  • The node shows an error:
    image

What do you expect to happen?

  • Show error output in debug-log and on node status

Please tell us about your environment:

  • Node generator version: 0.1.0
  • Node.js version: 18.2
  • Node-RED version: 1.3.5
  • Browser: Chrome