[GH-ISSUE #772] Using : in default-command for subscribe leads to error #556

Closed
opened 2026-05-07 00:25:24 +02:00 by BreizhHardware · 1 comment

Originally created by @newhinton on GitHub (Jun 11, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/772

🐞 Describe the bug
When using the :-char with the ntfy-cli tool in commands leads to errors:
yaml: line 9: mapping values are not allowed in this context

Example:
default-command: notify-send -i /x/ntfy.svg --app-name "ntfy: $topic" "$t" "$m"

💻 Components impacted
ntfy-cli, linux amd64

💡 Screenshots and/or logs
See above.

🔮 Additional context

Originally created by @newhinton on GitHub (Jun 11, 2023). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/772 :lady_beetle: **Describe the bug** When using the `:`-char with the ntfy-cli tool in commands leads to errors: `yaml: line 9: mapping values are not allowed in this context` Example: `default-command: notify-send -i /x/ntfy.svg --app-name "ntfy: $topic" "$t" "$m"` :computer: **Components impacted** ntfy-cli, linux amd64 :bulb: **Screenshots and/or logs** See above. :crystal_ball: **Additional context** <!-- Add any other context about the problem here. -->
BreizhHardware 2026-05-07 00:25:24 +02:00
  • closed this issue
  • added the
    🪲 bug
    label
Author
Owner

@binwiederhier commented on GitHub (Jun 11, 2023):

I think you're just using invalid yml. Single quotes around it, or some other way to escape the value property. I'm sure Google or ChatGPT will help there.

<!-- gh-comment-id:1586142958 --> @binwiederhier commented on GitHub (Jun 11, 2023): I think you're just using invalid yml. Single quotes around it, or some other way to escape the value property. I'm sure Google or ChatGPT will help there.
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#556
No description provided.