question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: Slack text is escaped but automatic parsing is disabled

See original GitHub issue

📣 Notification Service(s) Impacted

Slack

🐞 Describe the bug

I’m not able to send text with links in my slack messages. The plugin is escaping text like the docs recommend but its not landing in Slack properly. My input text like <https://github.com/caronc/apprise | Apprise> intending to render like Apprise gets transformed into &lt;https://github.com/caronc/apprise|Apprise&gt; before it gets sent to the Slack API which then renders the full text string <https://github.com/caronc/apprise|Apprise> in the slack message instead of the expected Apprise.

I believe the issue is that we’re disabling automatic parsing by excluding link_names, this is the snippet from the docs about how to disable parsing:

For the top-level text field, or text in secondary message attachments, as long as you exclude the link_names argument when publishing, this will be disabled by default. Regular URLs will still be converted into clickable links however - to disable this, pass the parse argument with a value of none when publishing.

When I commented out this reformat_mapping escape characters locally I saw my message render properly in slack.

I think the easiest path forward would be to stop reformatting those characters. Does that sound right? I’m new to using apprise (thanks btw, its been awesome so far!) so I might have missed something.

💡 Screenshots and Logs

💻 Your System Details:

  • OS: Mac
  • Python Version: 3.9

🔮 Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
caronccommented, Oct 28, 2022

I’ll definitely look into this over the weekend if i can.

0reactions
pnadolny13commented, Nov 3, 2022

@caronc totally understandable, thanks for the detail. I’ll keep an eye out for the next release!

I’ll close this issue since its resolved but feel free to re-open if needed for whatever reason 😄 .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Formatting text for app surfaces - Slack API
Another good reason to disable automatic parsing is to be more explicit about where you want to include links and mentions. This could...
Read more >
Multiline strings are not handled when slack orb parses them ...
parse error : Invalid string: control characters from U+0000 through U+001F must be escaped at line 1, column 1867 ...
Read more >
Jira smart values - text fields | Cloud automation Cloud
Use smart values in your automation rules to manipulate text strings, such as issue summary or comments. View the smart values available in...
Read more >
Send Scheduled Messages to Slack - PipeGears
The simplest way to send messages to a Slack channel is to enable an incoming Webhook in your app. To do this, you...
Read more >
slack - Go Packages
You can also chat with us on the #slack-go, #slack-go-ja Slack channel on the ... string) MsgOption; func MsgOptionText(text string, escape bool) MsgOption ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found