All Apps and Add-ons

Webhook Alerts for Hangouts Chat addon bug with formatting carriage return

david_poulin
New Member

Hi,

recently the app "Webhook Alerts for Hangouts Chat" was added to our cloud instance by Splunk. The alert action to send message to a google channel seem to use "simple message text" format from google documentation.

Some formatting option like bold, italic and so on work well, but seem that the carriage return is not well intrepreted or converted or stripped for some reason...

i try 

\n

\\n

 

and the result in the chanel that we see the \n directly...without conversion....

 

Could someone help me on that please

 

@resmungo you are indicated as the author of this add-on, could you help us on that ?

 

Thand

 

Labels (2)
0 Karma

david_poulin
New Member

When i test it and use the documentation of google : https://developers.google.com/chat/reference/message-formats/basic

The other formatting and the link worked perfectly....but for some strange reason the \n didn't work...

While you were developping, could it may possible the escape caractere is double-escaped in the code that send the message ?

 

Otherwise i will try to search on google side

0 Karma

resmungo
Explorer

Since we just pass the text directly as the message component I'm not sure how to address this. If there are any suggestions I'd be happy to give it a shot.

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...