[GH-ISSUE #221] Android app: action button with action "http" and method GET produces incorrect error #177

Closed
opened 2026-05-07 00:21:06 +02:00 by BreizhHardware · 1 comment

Originally created by @cmeis on GitHub (Apr 23, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/221

The Android test app (test build from Discord / https://phil.nopaste.net/T7d7JOvNRH?d=1&f=app-play-debug.apk&a=uVxXKVl4wn) is behaving incorrectly with an action button of type "http" and method set to "GET".
The notification is sent to the app.
When clicking the action button in the notification the request is not sent and an error message is displayed: "unlock door failed: method GET must not have a request body" - but there is no request body defined.

This is an example notification request:

{
    "topic": "transfer",
    "message": "pizza delivery arrived",
    "actions": [
      {
        "action": "http",
        "label": "unlock door",
        "url": "https://my.door.lock/open-sesame",
        "method": "GET",
        "clear": true
      }
    ]
  }
Originally created by @cmeis on GitHub (Apr 23, 2022). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/221 The Android test app (test build from Discord / https://phil.nopaste.net/T7d7JOvNRH?d=1&f=app-play-debug.apk&a=uVxXKVl4wn) is behaving incorrectly with an action button of type "http" and method set to "GET". The notification is sent to the app. When clicking the action button in the notification the request is not sent and an error message is displayed: "unlock door failed: method GET must not have a request body" - but there is no request body defined. This is an example notification request: ``` { "topic": "transfer", "message": "pizza delivery arrived", "actions": [ { "action": "http", "label": "unlock door", "url": "https://my.door.lock/open-sesame", "method": "GET", "clear": true } ] } ```
Author
Owner

@binwiederhier commented on GitHub (Apr 23, 2022):

Fixed in github.com/binwiederhier/ntfy@b805d49cfd and github.com/binwiederhier/ntfy-android@4ad6846802

<!-- gh-comment-id:1107541760 --> @binwiederhier commented on GitHub (Apr 23, 2022): Fixed in https://github.com/binwiederhier/ntfy/commit/b805d49cfd4ca66c37c1a857035a27abcf1e3ccf and https://github.com/binwiederhier/ntfy-android/commit/4ad68468023d84fb147582b814fa64f06702936c
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#177
No description provided.