Openai Credentials node got corrupted

Describe the problem/error/question

My Openai Credentials node got curuppted no idea why even is icon is not showing

What is the error message (if any)?

Could not load list

Credential with ID “ebgcrBv1pLNADBzg” does not exist for type “openAiApi”.

Please share your workflow

Share the output returned by the last node

Could not load list

Credential with ID “4uSzYTmm6UTdgt9P” does not exist for type “openAiApi”.


Screenshot 2025-06-05 180007

Information on your n8n setup

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

We’ve run into this before with credential-linked nodes in n8n, especially after container refreshes or credential deletions.

In your case, the OpenAI node is referencing a credential ID (4uSzYTmm6UTdgt9P) that no longer exists or has become invalid. That’s why you’re getting:

Credential with ID “...” does not exist for type “openAiApi”

To fix this:

  1. Go to Credentials → Create new credential → OpenAI API
    Use a valid API key and save with a recognizable name (e.g., OpenAI Prod).
  2. In your OpenAI node, reselect this new credential in the “Credential to connect with” dropdown.
  3. Once connected, the model list will auto-load again, and the red error will disappear.

If the node was copied from another instance or template, this is expected, the credential reference breaks because n8n uses unique credential IDs that don’t carry over between environments.


We’ve dealt with this and similar cases across multiple client setups. Happy to assist further if this continues. You can also connect with us on Calendly or explore our site if you need help debugging or scaling AI integrations.

Unfortunately this didn’t work at all

{
“nodes”: [
{
“parameters”: {
“options”: {}
},
“type”: “@n8n/n8n-nodes-langchain.chatTrigger”,
“typeVersion”: 1.1,
“position”: [
0,
0
],
“id”: “e3767dd0-7791-438c-864f-c3aa08ea318d”,
“name”: “When chat message received”,
“webhookId”: “3c628988-a0dd-47da-ba10-26378ba3cd30”
},
{
“parameters”: {
“modelId”: {
“__rl”: true,
“mode”: “list”,
“value”: “”
},
“messages”: {
“values”: [
{}
]
},
“options”: {}
},
“type”: “@n8n/n8n-nodes-langchain.openAi”,
“typeVersion”: 1.8,
“position”: [
220,
0
],
“id”: “506d3b9f-774b-4858-949f-76236479918e”,
“name”: “OpenAI”,
“credentials”: {
“openAiApi”: {
“id”: “IoWfjgtEJ1JSNoKA”,
“name”: “OpenAI Prod”
}
}
}
],
“connections”: {
“When chat message received”: {
“main”: [
[
{
“node”: “OpenAI”,
“type”: “main”,
“index”: 0
}
]
]
}
},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “019c4aed2191c0de5bf1832ecbc3b832a60c004a463216f1ca7f5c441e76626d”
}
}

The API key works, i workes on another n8n install, i think the API itself got corrupted for one reason to another, is there a way to reinstall it ? or to fix it ?

Just to double-check: if you’ve already deleted and recreated the credential under a new name and still hit the same issue, then it might be worth checking the environment itself (especially if you’re running via Docker as you mentioned earlier).

We’ve seen a few edge cases where the internal credential mapping gets corrupted even though the API key is valid and works elsewhere. Here’s what we’d typically do to isolate/fix it:

  1. Delete the broken credential entirely in Credentials.
  2. Create a brand new one (don’t reuse the name, use something like OpenAI Prod 2 to ensure a clean ID).
  3. Go to the node and reselect the new credential from the dropdown.
  4. After binding, the model list should repopulate automatically.

If this still fails, especially after recreating clean credentials and you’re on Docker, try:

  • Rebuilding the container (with --no-cache if needed).
  • Making sure your volumes aren’t persisting an older corrupted state.

Let us know how it goes, happy to dig deeper. We’ve worked on similar setups with OpenAI + n8n in production (you can connect via Calendly or check us at hashlogics.com if you need help scaling/debugging).