Slack Attachment not working with ChatOps

Hello, we are using InsightConnect ChatOps extension with Slack and there is no problem while sending messages, but when I add the Attachment JSON, I encounter the message “an unknown error occurred”. An example of the configuration I entered is as follows;

Attachment JSON:

[{
			"blocks": [
				{
					"type": "section",
					"text": {
						"type": "mrkdwn",
						"text": "*Alternative hotel options*"
					}
				},
				{
					"type": "section",
					"text": {
						"type": "mrkdwn",
						"text": "<https://example.com|Bates Motel> :star::star:"
					},
					"accessory": {
						"type": "button",
						"text": {
							"type": "plain_text",
							"text": "View",
							"emoji": true
						},
						"value": "view_alternate_1"
					}
				},
				{
					"type": "section",
					"text": {
						"type": "mrkdwn",
						"text": "<https://example.com|The Great Northern Hotel> :star::star::star::star:"
					},
					"accessory": {
						"type": "button",
						"text": {
							"type": "plain_text",
							"text": "View",
							"emoji": true
						},
						"value": "view_alternate_2"
					}
				}
			]
		}]

And other configs;

Screen Shot 2023-02-02 at 12.15.28

And output:

Screen Shot 2023-02-02 at 12.14.39
Screen Shot 2023-02-02 at 12.15.03
Screen Shot 2023-02-02 at 12.16.38

How can we solve this problem, I couldn’t find a detailed log about it?

Same here, very frustrating.

This works for me:

[
{
“fallback”: “Danny Torrence left the following review for your property:”,
“color”: “#36a64f”,
“pretext”: “Danny Torrence left the following review for your property:”,
“title”: “Overlook Hotel”,
“title_link”: “https://example.com”,
“text”: “:star: \n Doors had too many axe holes, guest in room 237 was far too rowdy, whole place felt stuck in the 1920s.”,
“image_url”: “https://is5-ssl.mzstatic.com/image/thumb/Purple3/v4/d3/72/5c/d3725c8f-c642-5d69-1904-aa36e4297885/source/256x256bb.jpg”,
“fields”: [
{
“title”: “Average Rating”,
“value”: “1.0”,
“short”: false
}
],
“footer”: “Review”,
“footer_icon”: “https://platform.slack-edge.com/img/default_application_icon.png
},
{
“fallback”: “Alternative hotel options”,
“color”: “#3AA3E3”,
“title”: “Alternative hotel options”,
“fields”: [
{
“title”: “Bates Motel”,
“value”: “https://example.com|View :star::star:”,
“short”: false
},
{
“title”: “The Great Northern Hotel”,
“value”: “https://example.com|View :star::star::star::star:”,
“short”: false
}
],
“footer”: “Alternative Options”,
“footer_icon”: “https://platform.slack-edge.com/img/default_application_icon.png
}
]

Screenshot 2024-06-28 at 1.56.48 PM