n8n - 💡(How to fix) Fix OpenAI login credentials failed. config.headers.setContentType is not a function

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…

Error Message

Describe the problem/error/question

What is the error message (if any)?

  • error: all

Code Example

(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.)
⚠️ WARNING ⚠️ If you have sensitive data in your workflow (like API keys), please remove it before sharing.
RAW_BUFFERClick to expand / collapse
<!-- Please follow the template below. Skip the questions that are not relevant to you. -->

Describe the problem/error/question

In recent time i am facing openai credentials login failed

What is the error message (if any)?

config.headers.setContentType is not a function

Please share your workflow/screenshots/recording

{ "nodes": [ { "parameters": { "modelId": { "__rl": true, "value": "gpt-4o", "mode": "list", "cachedResultName": "GPT-4O" }, "responses": { "values": [ { "role": "system", "content": "WICHTIG: Verwende IMMER "du"-Form. \nNIEMALS "Sie" verwenden. Keine Ausnahmen.\n\nDu bist ein direkter KI-Assistent für TRETR.de.\n\nAntworte empathisch aber kurz auf Deutsch mit \n"du"-Form. Maximal 3 Sätze.\nKeine Begrüßungen, keine Verabschiedungen.\n\nBESCHWERDE: Zeige Verständnis, sage dass das \nTeam sich meldet.\n\nSTORNIERUNG: Erkläre kurz die Policy.\n\nRÜCKGABE: Erkläre kurz die Policy.\n\nMENSCH: Sage dass jemand sich per E-Mail meldet.\n\nWICHTIG - Beende IMMER mit:\n"Das Support-Team meldet sich per E-Mail bei dir."" }, { "content": "={{ $('Edit Fields').first().json.message }}" } ] }, "builtInTools": {}, "options": {} }, "type": "@n8n/n8n-nodes-langchain.openAi", "typeVersion": 2.1, "position": [ -800, 912 ], "id": "8db5bd5d-bd98-4447-97b5-dfa2833b0e67", "name": "Message a model3", "credentials": {} } ], "connections": { "Message a model3": { "main": [ [] ] } }, "pinData": {}, "meta": { "instanceId": "c81da429b370e09bcb8b1ab935ed429e1188358ab1ddd17b9c5a7e19b6da7fab" } }

(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.)
⚠️ WARNING ⚠️ If you have sensitive data in your workflow (like API keys), please remove it before sharing.

Share the output returned by the last node

<!-- If you need help with data transformations, please also share your expected output. -->

Debug info

core

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/148.0.0.0 safari/537.36
  • isTouchDevice: false

Generated at: 2026-05-12T02:42:04.443Z

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