CREDENTIAL Overwrite with environment variables

Describe the problem/error/question

CREDENTIAL_OVERWRITE_DATA does not support a json array to overwrite more then one type.

What is the error message (if any)?

2024-01-16T14:05:01.649Z | warn | Unknown credential type 0 in Credential overwrites “{ file: ‘CredentialsOverwrites.js’, function: ‘getOverwrites’ }”
2024-01-16T14:05:01.650Z | warn | Unknown credential type 1 in Credential overwrites “{ file: ‘CredentialsOverwrites.js’, function: ‘getOverwrites’ }”

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:1.2
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):default
  • Running n8n via (Docker, npm, n8n cloud, desktop app):docker
  • Operating system:

i solved it, in embed configuration api is a example how the variable must be set.
see
Configuration | n8n Docs

{
    "asanaOAuth2Api": {
        "clientId": "<id>",
        "clientSecret": "<secret>"
    },
    "githubOAuth2Api": {
        "clientId": "<id>",
        "clientSecret": "<secret>"
    }
}

this is my line in a docker compose file to set the variable.
- CREDENTIALS_OVERWRITE_DATA={"oAuth2Api":{"clientId":"<someclientid>","clientSecret":"<someclientsecret>"},"httpBasicAuth":{"user":"<someusername>","password":"<somepassword>"}}

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.