Error when triggering a webhook

Can anyone help me fix this error, it happens on a webhook trigger, seems a bit odd:

{
  "errorMessage": "Internal error",
  "errorDetails": {},
  "n8nDetails": {
    "n8nVersion": "1.50.1 (Self Hosted)",
    "binaryDataMode": "default",
    "stackTrace": [
      "Error: ENOENT: no such file or directory, stat '/tmp/6376f5b5d07f44768e2008db4'",
      "    at stat (node:internal/fs/promises:1032:18)",
      "    at BinaryDataService.copyBinaryFile (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/BinaryData/BinaryData.service.js:68:30)",
      "    at copyBinaryFile (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:856:12)",
      "    at Object.copyBinaryFile (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:2180:61)",
      "    at Webhook.handleFormData (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Webhook/Webhook.node.js:330:57)",
      "    at Webhook.webhook (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Webhook/Webhook.node.js:190:20)",
      "    at Workflow.runWebhook (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:661:15)",
      "    at Object.executeWebhook (/usr/local/lib/node_modules/n8n/dist/WebhookHelpers.js:220:33)"
    ]
  }
}

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:

Would it be possible to share the form-data request with us?

I don’t have the full data but I can tell you that my client is sending a post request with the following text in the body that causes it to fail, note the text is being json encoded before sending:

"skip the lesson part for ## 模块 1: 解剖学与生理学

子模块 1.2: 组织损伤与修复

课程 3: 常见病理及其对组织的影响

I only need the review questions and answer for this lesson.
please output in the following format

Review Questions with Scene Suggestions

  1. 以下哪种疾病属于炎症性疾病?(Which of the following is an inflammatory disease?)
    • A. 骨质疏松症 (Osteoporosis)
    • B. 关节炎 (Arthritis)
    • C. 椎间盘退行性疾病 (Degenerative Disc Disease)
    • D. 系统性红斑狼疮 (Systemic Lupus Erythematosus)
    • 答案: B. 关节炎 (Arthritis)
    • 正确答案的简单解释(包含记忆技巧): 关节炎是一种炎症性疾病,导致关节的炎症和疼痛。记忆技巧:想象关节炎是关节的炎症,导致红肿和疼痛。
    • 错误选项的简单解释: 骨质疏松症是退行性疾病,椎间盘退行性疾病也是退行性疾病,系统性红斑狼疮是自身免疫性疾病。
      视觉建议:
      显示关节炎的动画,展示关节炎的过程和影响(3-5秒)。
  2. 以下哪种疾病属于退行性疾病?(Which of the following is a degenerative disease?)
    • A. 关节炎 (Arthritis)
    • B. 肌腱炎 (Tendinitis)
    • C. 骨质疏松症 (Osteoporosis)
    • D. 系统性红斑狼疮 (Systemic Lupus Erythematosus)
    • 答案: C. 骨质疏松症 (Osteoporosis)
    • 正确答案的简单解释(包含记忆技巧): 骨质疏松症是一种退行性疾病,导致骨密度降低和骨骼脆弱。记忆技巧:想象骨质疏松症是骨头变得脆弱和易碎。
    • 错误选项的简单解释: 关节炎是炎症性疾病,肌腱炎是炎症性疾病,系统性红斑狼疮是自身免疫性疾病。
      视觉建议:
      显示骨质疏松症的动画,展示骨密度降低的过程(3-5秒)。
  3. 以下哪种疾病属于感染性疾病?(Which of the following is an infectious disease?)
    • A. 关节炎 (Arthritis)
    • B. 肌腱炎 (Tendinitis)
    • C. 细菌性肌炎 (Bacterial Myositis)
    • D. 系统性红斑狼疮 (Systemic Lupus Erythematosus)
    • 答案: C. 细菌性肌炎 (Bacterial Myositis)
    • 正确答案的简单解释(包含记忆技巧): 细菌性肌炎是一种感染性疾病,由细菌引起的肌肉感染。记忆技巧:想象细菌性肌炎是细菌感染肌肉,导致炎症和疼痛。
    • 错误选项的简单解释: 关节炎是炎症性疾病,肌腱炎是炎症性疾病,系统性红斑狼疮是自身免疫性疾病。"

Considering that the error is happening in Webhook.handleFormData, the Content-Type header is set to multipart/form-data, and not application/json.
maybe check with them the exact format of the payload, and make sure that the format matches the Content-Type header being sent.

I’ve just checked the payload and set correctly, it works with English but not with Chinese, the node doesn’t seem to want to handle it, even if I set Content-Type: application/json; charset=utf-8

can you share the request in a curl format to be able to reproduce this?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.