n8n - 💡(How to fix) Fix Issue connect OpenAI credentials in n8n Cloud [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
n8n-io/n8n#30176Fetched 2026-05-11 03:26:51
View on GitHub
Comments
2
Participants
3
Timeline
8
Reactions
0
Timeline (top)
commented ×2mentioned ×2subscribed ×2closed ×1

Error Message

When I try to test/connect the credentials, n8n returns an error before I can use the OpenAI node.

  • error: all
RAW_BUFFERClick to expand / collapse

I cannot connect OpenAI credentials in n8n Cloud.

I created a new OpenAI API key in the OpenAI Platform and pasted it into the OpenAI credentials field in n8n.

When I try to test/connect the credentials, n8n returns an error before I can use the OpenAI node.

Organization ID is empty. Base URL is default. I did not add any custom headers. The API key is new and valid.

<img width="1030" height="306" alt="Image" src="https://github.com/user-attachments/assets/39fd42d3-2f06-4be1-9378-b26a660415a8" />

Couldn't connect with these settings

config.headers.setContentType is not a function

core

  • n8nVersion: 2.19.5
  • platform: docker (cloud)
  • nodeJsVersion: 24.14.1
  • nodeEnv: production
  • database: sqlite
  • executionMode: regular
  • concurrency: 5
  • license: enterprise (sandbox)

storage

  • success: all
  • error: all
  • progress: false
  • manual: true
  • binaryMode: filesystem

pruning

  • enabled: true
  • maxAge: 168 hours
  • maxCount: 2500 executions

client

  • userAgent: mozilla/5.0 (windows nt 10.0; win64; x64) applewebkit/537.36 (khtml, like gecko) chrome/146.0.0.0 safari/537.36 opr/130.0.0.0
  • isTouchDevice: false

Generated at: 2026-05-10T15:41:09.035Z

Could you please check if this is related to the known n8n 2.19.5 regression with OpenAI/HTTP Request headers?

<img width="1030" height="306" alt="Image" src="https://github.com/user-attachments/assets/14aaf9ec-3485-49ba-9963-e23c7a1c0f82" />

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING