openApi-red without SSL

Hi everyone. Not sure where to put my question:
Just discovered nodeRED this week, it's like chistmas came earlier ::slight_smile:
To access openAPI of FireFly (https://api-docs.firefly-iii.org/) in a Docker container, i use http instead https. It looks as this is impossible as i get a:

TypeError [ERR_INVALID_PROTOCOL]: Protocol "http:" not supported. Expected "https:" at new ClientRequest (node:_http_client:187:11) at request (node:http:101:10) at file:///data/node_modules/node-fetch/src/index.js:94:20 at new Promise (<anonymous>) at fetch (file:///data/node_modules/node-fetch/src/index.js:49:9) at requestSettings.userFetch (/data/node_modules/openapi-red/src/openapi.js:303:18) at http (/data/node_modules/swagger-client/lib/http/index.js:56:45) at async openApiRed._inputCallback (/data/node_modules/openapi-red/src/openapi.js:309:26)
  • Can anyone confirm, that openApi-red 2.7.5 only supports https?
  • As is didn't found a good place to place this issue at, where should i post this question?

Hi there,

if you are using this node package --> openapi-red (node) - Node-RED as your stacktrace seems to indicate:

(/data/node_modules/openapi-red/src/openapi.js:303:18)

then you're better off asking them at githublab for example.

/cc @2WeltenChris

Hi beatsbesmer,

it seems that openapi-red thinks you need an https Agent setting.

This is the case if you are using any of those config node options:

  • use a (https) certificate auth
  • the server you want to call starts with "https://localhost"
  • activated devMode

Please check if any of the above options are activated. If not please share more info.

In my local docker NR instance (running on http) it seems to work (got of course an 401).

PS: Latest version is 2.8.0, with updated swagger-client, but I doubt that is the problem.
PPS: As gregorius stated, our git is nodefox / openapi-RED · GitLab