Can not access nodered image api


I created an Agent with the Node-RED image. Inside Node-RED, I set up an HTTP In flow.

When I call the HTTP In URL, a dialog prompts me for authentication. I entered the admin user credentials, but they were not accepted.

The Node-RED agent log shows the following error:

bot01 is not a member of 'nodered api users' for /hdbotsflow

What is causing this issue, and how can I resolve it?

When you create it, the JSON with environment variables includes admin_role and api_role. The first takes the name of a role you want to use for people who can sign in to the Node-RED UI. The second takes the name of a role you want to use for people who can access HTTP endpoints in Node-RED. If you leave the last one blank, there will not be any authentication for HTTP endpoints; this is the default.

1 Like

Thank you @Allan_Zimmermann ,
Setting the variables worked when I created a new Agent, but it does not work when updating the variables for an existing Agent.
Anyway, the main problem is solved.

you have to stop and stop the agent for the change to take effect