Workflow sometimes uses incorrect credentials

I have a workflow that uses an HTTP Request node to submit a POST request to https://www.useanvil.com/ to generate a PDF.

Under Credentials, I have selected Basic Auth and selected “Anvil Prod”. When I manually run the workflow it works as expected, but when I turn the workflow ON, the workflow sometimes uses Anvil Prod and sometimes uses Anvil Dev.

I’m not dynamically setting this so it seems really strange that some executions would use the Dev credentials.

Has anyone encountered this before?

I have not seen that before, Couple of questions that may help get to the bottom of it…

Are you running n8n yourself or using the cloud version?
Are you the only user that has access to n8n?
What version of n8n are you running?

Are you running n8n yourself or using the cloud version?

Self-hosted

Are you the only user that has access to n8n?

No, but the other user has not touched this workflow recently. It’s generally been working as expected for the past weeks and I haven’t made any changes to it.

What version of n8n are you running?

0.127.0

I would maybe suggest started with an update, I can’t see anything specifically related to the HTTP node that might fix it but I did find a change in 135 “Credentials are now loaded from the database on-demand.” which could fix the issue if you are seeing if it was maybe caching them before.

1 Like

okay thanks!