Folo icon indicating copy to clipboard operation
Folo copied to clipboard

n8n HTTP POST to api.follow.is returns 400 (“{}”); JSON body not accepted

Open lincomao opened this issue 1 year ago • 5 comments

Platform

Desktop - macOS

Describe the bug

Hello Folo Team,

I’m trying to push content into my Folo inbox via HTTP as per the Webhook docs, but the server consistently returns 400. Could you please help diagnose?

Context

  • Goal: Push a test item into my Folo inbox
  • Endpoint: POST https://api.follow.is/
  • X-Follow-Handle: [[email protected]](mailto:[email protected])
  • X-Follow-Secret: FkqSR66lKq_l1eGymDkO6
  • Client: n8n v1.107.3 (self‑hosted)

Error observed

  • n8n error summary:
    • errorMessage: "Bad request - please check your parameters"
    • errorDescription: "400 - "{}""
    • httpCode: "400"
  • When body validation fails locally in n8n:
    • "JSON parameter needs to be valid JSON"

Requests I sent (two reproducible cases)

  1. cURL (Windows quoting; Mac/Linux equivalent works with single quotes)

curl -X POST "https://api.follow.is/" ^

-H "Content-Type: application/json" ^

-H "X-Follow-Handle: [[email protected]](mailto:[email protected])" ^

-H "X-Follow-Secret: FkqSR66lKq_l1eGymDkO6" ^

-d "{"guid":"demo-2025-10-25-063700Z","publishedAt":"2025-10-25T06:37:00Z","title":"Minimal test","url":"https://example.com/","content":"hello","language":"zh-CN","categories":["test"]}"

  1. n8n HTTP Request node
  • Method: POST
  • URL: https://api.follow.is/
  • Headers: Content-Type=application/json; [[email protected]](mailto:[email protected]); X-Follow-Secret=FkqSR66lKq_l1eGymDkO6
  • Send Body: ON; Body type: JSON
  • Raw JSON (single line):

{"guid":"demo-2025-10-25-063800Z","publishedAt":"2025-10-25T06:38:00Z","title":"Minimal test","url":"https://example.com/","content":"hello","language":"zh-CN","categories":["test"]}

Behavior

  • Server responds 400 with body shown as "{}". It looks like the JSON body isn’t being accepted, or I may be missing a required field/format or using outdated endpoint/headers.

Questions

  1. Is the endpoint and header usage (X-Follow-Handle / X-Follow-Secret) correct? Any newer/recommended hostname/path?

  2. For WebhookPayload, are there mandatory fields or strict formats (e.g., publishedAt timezone/format, categories as array) that would trigger a 400?

  3. Does the server intentionally return "{}" for invalid/empty bodies, and can more specific error details be surfaced?

  4. Any constraints on body size, charset, or escaping (e.g., HTML/newlines in content)?

  5. Is there a sample Postman collection or echo endpoint to verify requests?

I can provide full raw HTTP logs, timestamps, and request IDs if needed. Thanks for your help!

Best regards,

Changmao Lin

Email: [[email protected]](mailto:[email protected])

Time: 2025-10-25 14:36 (Asia/Shanghai)

Entry ID

No response

Relevant Information

No response

Reproduction Video

No response

Environment

No response

Validations

  • [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • [x] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • [x] This issue is valid

Contributions

  • [ ] I am willing to submit a PR to fix this issue
  • [ ] I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)

lincomao avatar Oct 25 '25 07:10 lincomao

FOL-2680

linear[bot] avatar Oct 25 '25 07:10 linear[bot]

I found similar issues that might help:

  • https://github.com/RSSNext/Folo/issues/4602 (similarity: 0.95)

github-actions[bot] avatar Oct 25 '25 07:10 github-actions[bot]

这个bug还没修复么?

alphacaicai2 avatar Jan 22 '26 07:01 alphacaicai2

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Has this bug not been fixed yet?

github-actions[bot] avatar Jan 22 '26 07:01 github-actions[bot]

Thanks for the detailed report. The request is going to the API root; the webhook endpoint is POST https://api.follow.is/inboxes/webhook (see https://github.com/RSSNext/Folo/wiki/Inbox#webhooks), and X-Follow-Handle must be the bare inbox handle (the part before @follow.re), not the full address. Since your inbox secret is posted in this issue, you may also want to create a new inbox with a fresh secret.

DIYgod avatar Sep 26 '26 13:09 DIYgod