Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slack embedded objects are not shown #22

Open
arkadym opened this issue Mar 14, 2023 · 2 comments
Open

Slack embedded objects are not shown #22

arkadym opened this issue Mar 14, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@arkadym
Copy link

arkadym commented Mar 14, 2023

Hi, we have error reporting configured send errors to slack channel. Today i configured matrix to bridge that slack channel. Somehow only message text appearing (see below), but not all details.

It is supposed to be:
image

In real it is:
image

@arkadym arkadym added the bug Something isn't working label Mar 14, 2023
@twouters
Copy link
Contributor

Example source message resulting in the same behavior:

        {
            "bot_id": "B03DM6XXXXX",
            "type": "message",
            "text": "",
            "user": "U03CXDXXXXX",
            "ts": "1687792189.893579",
            "app_id": "A03CXDXXXXX",
            "team": "TQEGXXXXX",
            "bot_profile": {
                "id": "B03DM6XXXXX",
                "deleted": false,
                "name": "Sentry",
                "updated": 1650957489,
                "app_id": "A03CXDXXXXX",
                "icons": {
                    "image_36": "https:\/\/avatars.slack-edge.com\/2022-04-26\/3432816908838_4a5919504d479a933a9a_36.png",
                    "image_48": "https:\/\/avatars.slack-edge.com\/2022-04-26\/3432816908838_4a5919504d479a933a9a_48.png",
                    "image_72": "https:\/\/avatars.slack-edge.com\/2022-04-26\/3432816908838_4a5919504d479a933a9a_72.png"
                },
                "team_id": "TQEGXXXXX"
            },
            "attachments": [
                {
                    "id": 1,
                    "ts": 1687792178,
                    "color": "E03E2F",
                    "fallback": "[api] GuzzleHttp\\Exception\\ConnectException: cURL error 6: Could not resolve host: <http:\/\/example.org|example.org> (see <https:\/\/curl.haxx.se\/lib>...",
                    "text": "cURL error 6: Could not resolve host: <http:\/\/example.org|example.org> (see <https:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html>) for <https:\/\/example.org\/api\/instances>",
                    "title": "GuzzleHttp\\Exception\\ConnectException",
                    "title_link": "https:\/\/sentry.example.org\/organizations\/sentry\/issues\/37557\/?referrer=slack",
                    "callback_id": "{\"issue\":37557}",
                    "footer": "API-1GQ via <https:\/\/sentry.example.org\/organizations\/sentry\/alerts\/rules\/api\/29\/details\/|Issue was changed to unresolved (or is a new issue)>",
                    "fields": [
                        {
                            "value": "prod",
                            "title": "environment",
                            "short": true
                        },
                        {
                            "value": "BE",
                            "title": "Country",
                            "short": true
                        },
                        {
                            "value": "verhip",
                            "title": "searchString",
                            "short": true
                        }
                    ],
                    "mrkdwn_in": [
                        "text"
                    ],
                    "actions": [
                        {
                            "id": "1",
                            "name": "resolve_dialog",
                            "text": "Resolve...",
                            "type": "button",
                            "value": "resolve_dialog",
                            "style": ""
                        },
                        {
                            "id": "2",
                            "name": "status",
                            "text": "Ignore",
                            "type": "button",
                            "value": "ignored",
                            "style": ""
                        },
                        {
                            "id": "3",
                            "name": "assign",
                            "text": "Select Assignee...",
                            "type": "select",
                            "data_source": "static",
                            "option_groups": [
                                {
                                    "text": "Teams",
                                    "options": [
                                        {
                                            "text": "#devteam",
                                            "value": "team:5"
                                        }
                                    ]
                                },
                                {
                                    "text": "People",
                                    "options": [
                                        {
                                            "text": "Test User",
                                            "value": "user:6"
                                        }
                                    ]
                                }
                            ],
                            "selected_options": [
                                {
                                    "value": "user:6",
                                    "text": "Test User"
                                }
                            ]
                        }
                    ]
                }
            ]
        }

@copoer
Copy link

copoer commented Aug 9, 2023

I am also interested in getting embedded text to show up. I am wondering if we could have a setting to force it to just dump the raw embedded text

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

3 participants