@rayo axios interceptor bug — every call to api.openai.com hits the broken global helper, cred type doesn’t matter. only unblock is a Cloudflare Worker proxy:
export default { async fetch(req) { const u = new URL(req.url); u.host='api.openai.com'; u.protocol='https:'; return fetch(new Request(u,req)); } }
@rayo Good that @kjooleng confirmed it’s a known issue! While the n8n team works on the fix, here’s a simpler immediate workaround if you don’t want to set up a Cloudflare proxy:
Use an HTTP Request node directly instead of the OpenAI credential:
This bypasses the broken credential type entirely and works fine in n8n Cloud right now. The output is the same as what the OpenAI node returns. You can swap back to the native node once the fix ships.
Hope this helps you unblock while waiting for the update!
This looks like a confirmed n8n Cloud bug rather than an issue with your OpenAI API key or setup. Multiple users are reporting the same config.headers.setContentType is not a function error after recent cloud updates, especially with OpenAI credentials and HTTP Request nodes. (n8n Community)