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

Action button faulty #89

Open
boredomdenied opened this issue Jan 6, 2022 · 3 comments
Open

Action button faulty #89

boredomdenied opened this issue Jan 6, 2022 · 3 comments
Labels
Help Wanted Community help wanted Type/Bug Something isn't working Up For Grabs Ready for help from the community. Removed when someone volunteers
Milestone

Comments

@boredomdenied
Copy link

boredomdenied commented Jan 6, 2022

I have latest mattermost installed with fresh install of welcomebot. This is mattermost-docker latest stable docker, docker-compose running ubuntu 20.04LTS

I have enabled the plugin. Adapted the config.json as follows:

    "PluginSettings": {
        "Enable": true,
        "EnableUploads": false,
        "AllowInsecureDownloadURL": false,
        "EnableHealthCheck": true,
        "Directory": "./plugins",
        "ClientDirectory": "./client/plugins",
        "Plugins": {
            "com.mattermost.custom-attributes": {
                "customattributes": [
                    {
                        "GroupIDs": "",
                        "Name": "Interests",
                        "TeamIDs": [],
                        "UserIDs": [
                            "fjadklgjaklbdsalj"
                        ]
                    }
                ]
            },
            "com.mattermost.welcomebot": {
                "WelcomeMessages": [
                    {
                        "Actions": [
                            {
                                "ActionDisplayName": "Social Butterfly",
                                "ActionName": "social-butterfly",
                                "ActionSuccessfulMessage": [
                                    "User successfully joined the Telegram and Community channels"
                                ],
                                "ActionType": "button",
                                "ChannelsAddedTo": [
                                    "telegram",
                                    "community"
                                ]
                            }
                        ],
                        "AttachmentMessage": [
                            "Please inform us which roles you are interested in filling. Click the buttons to enable the relevant channels"
                        ],
                        "DelayInSeconds": 3,
                        "Message": [
                            "Welcome to [redacted]. We're happy to have you around."
                        ],
                        "TeamName": "ou-test"
                    }
                ]
            },

I see welcomebot for new user initial login. My custom text is visible. The button does not result in the result message or channel joins.

Here is the output inmattermost.log:

{"timestamp":"2022-01-06 20:45:04.660 Z","level":"debug","msg":"Action integration error.","caller":"web/context.go:101","path":"/api/v4/posts/hrht1jmf3prq9qmotgebjeax8c/actions/jupo71zsxfd4dpx7wypx8g5q7y","request_id":"3n5ju8i47bb3dd85fyhtfmrh6w","ip_addr":"42.42.42.42","user_id":"msjwkk9qoiygtetqrebihwgb4a","method":"POST","err_where":"DoActionRequest","http_code":400,"err_details":"err=Post \"https://[url.redacted]/plugins/com.mattermost.welcomebot/addchannels\": dial tcp 127.0.1.1:443: connect: connection refused"}
{"timestamp":"2022-01-06 20:45:04.661 Z","level":"debug","msg":"Received HTTP request","caller":"web/handlers.go:156","method":"POST","url":"/api/v4/posts/hrht1jmf3prq9qmotgebjeax8c/actions/jupo71zsxfd4dpx7wypx8g5q7y","request_id":"3n5ju8i47bb3dd85fyhtfmrh6w","host":"[url.redacted]","scheme":"https","status_code":"400"}

Are users reporting success with the docker installation? Any ideas where to go from here?

@boredomdenied
Copy link
Author

I found this issue that seems related. Link to a potential solution though it's two years old and a fix was said to be already in:

matterpoll/matterpoll#174 (comment)

MatterMost Fix:

mattermost/mattermost#12156

Can someone please inform me which is the best route to take to resolve issue. Thank you

@boredomdenied
Copy link
Author

https://github.com/mattermost/mattermost-server/pull/12156/files It looks like this should be hitting the local network yet doesn't for some reason?

@boredomdenied
Copy link
Author

boredomdenied commented Jan 6, 2022

As per:

moussetc/mattermost-plugin-giphy#21 (comment)

I tried shifting this attribute in the config.json file

From:
"AllowedUntrustedInternalConnections": "",

To:

"AllowedUntrustedInternalConnections": "127.0.1.1, [my-url-redacted], localhost, 127.0.0.1",

Same result

@hanzei hanzei added the Triage label Jan 7, 2022
@hanzei hanzei added the Type/Bug Something isn't working label Jan 10, 2022
@hanzei hanzei added Help Wanted Community help wanted Up For Grabs Ready for help from the community. Removed when someone volunteers labels Oct 9, 2023
@Kshitij-Katiyar Kshitij-Katiyar added this to the v1.4.0 milestone Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help Wanted Community help wanted Type/Bug Something isn't working Up For Grabs Ready for help from the community. Removed when someone volunteers
Projects
None yet
Development

No branches or pull requests

4 participants