[GH-ISSUE #468] A GET/HEAD action with no body does not send from the web client #357

Closed
opened 2026-05-07 00:23:27 +02:00 by BreizhHardware · 0 comments

Originally created by @ollien on GitHub (Nov 7, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/468

While the backend properly validates that you cannot attach a body to a GET/HEAD request, the web client does not allow you to perform these actions, spitting this into the console

TypeError: Window.fetch: HEAD or GET Request cannot have a body.

MRE:

curl ntfy.sh \
  -d '{
    "topic": "5cba1ce1-6373-458a-83f5-105fe5d258d5",
    "message": "",
    "actions": [
      {
        "action": "http",
        "label": "Call it",
        "url": "http://127.0.0.1:8000",
        "method": "GET"
      }
    ]
  }'
Originally created by @ollien on GitHub (Nov 7, 2022). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/468 While the backend properly validates that you cannot attach a body to a GET/HEAD request, the web client does not allow you to perform these actions, spitting this into the console ``` TypeError: Window.fetch: HEAD or GET Request cannot have a body. ``` MRE: ``` curl ntfy.sh \ -d '{ "topic": "5cba1ce1-6373-458a-83f5-105fe5d258d5", "message": "", "actions": [ { "action": "http", "label": "Call it", "url": "http://127.0.0.1:8000", "method": "GET" } ] }' ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#357
No description provided.