External Secrets /rest/providers returning error 500

While playing with the external secrets (changing some auth methods) and refreshing the web app, the /rest/external-secrets/providers endpoint has stopped working (simply returning 500). Now the web app returns nothing under /settings/external-secrets.

Response:

{
    "code": 0,
    "message": "Cannot read properties of undefined (reading 'startsWith')"
}

I can’t find anything in the DB that I could clean to reset this.
Help?

Information on your n8n setup

  • n8n version: 1.33.1 (enterprise)
  • Database (default: SQLite): MySQL
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via self-hosted k8s:

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

After investigating the code base, I realized that the list of providers were cached.
Something went wrong when saving them at some point and from then on, the cache was corrupted, leading to the aforementioned error.

A full reboot of the n8n deployments fixed the issue since this cache is only in-memory.

This can be considered closed.

1 Like