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 integration error #87

Closed
nicolas-goudry opened this issue Nov 4, 2021 · 3 comments
Closed

Action integration error #87

nicolas-goudry opened this issue Nov 4, 2021 · 3 comments
Labels
Type/Bug Something isn't working
Milestone

Comments

@nicolas-goudry
Copy link

nicolas-goudry commented Nov 4, 2021

I’m using Mattermost in a K8S environment, using the operator.

I tried to setup the Welcome Bot, but had to do so directly through the database. Even if it’s not ideal, it seems to be working because I can see my message when I type /welcomebot list or /welcomebot preview myteam.

However, when I click on an action button, there is the following error in the console:

{
  "id": "api.post.do_action.action_integration.app_error",
  "message": "Action integration error.",
  "detailed_error": "",
  "request_id": "pfnd5qg47jyb5ghk7aonip7tre",
  "status_code": 400
}

As you can see, the detailed_error is not very… detailed 😅

Edit: I might also mention that I tried to setup a new account and the same error occurs.

Here is my configuration:

{
  "WelcomeMessages": [
    {
      "TeamName": "myteam",
      "DelayInSeconds": 3,
      "Message": [
        "### Welcome {{.UserDisplayName}} to {{.Team.DisplayName}} team!",
        "",
        "If you have any questions about your account, or Mattermost in general, do not hesitate to ask on ~town-square :slightly_smiling_face:."
      ],
      "AttachmentMessage": [
        "Let’s get started by adding you to key channels! What’s your role in the company?",
        "",
        "Please note that you can always add or leave any channel of your team :wink:"
      ],
      "Actions": [
        {
          "ActionType": "button",
          "ActionDisplayName": "Java Developer",
          "ActionName": "java-developer-action",
          "ActionSuccessfulMessage": [
            "### Awesome! I’ve added you to the following developer channels:",
            "~bugs - To help investigate or report bugs",
            "~help---dev - To ask for help regarding general development issues",
            "~help---java - To ask for help regarding Java related development issues"
          ],
          "ChannelsAddedTo": [
            "bugs",
            "help---dev",
            "help---java"
          ]
        },
        {
          "ActionType": "button",
          "ActionDisplayName": "JavaScript Developer",
          "ActionName": "javascript-developer-action",
          "ActionSuccessfulMessage": [
            "### Awesome! I’ve added you to the following developer channels:",
            "~bugs - To help investigate or report bugs",
            "~help---dev - To ask for help regarding general development issues",
            "~help---js - To ask for help regarding JavaScript related development issues"
          ],
          "ChannelsAddedTo": [
            "bugs",
            "help---dev",
            "help---js"
          ]
        },
        {
          "ActionType": "button",
          "ActionDisplayName": "DevOps",
          "ActionName": "devops-action",
          "ActionSuccessfulMessage": [
            "### Awesome! I’ve added you to the following devops channels:",
            "~bugs - To help investigate or report bugs",
            "~help---devops - To ask for help regarding general devops issues",
            "~help---cloud - To ask for help regarding Cloud Providers related issues",
            "~help---kube - To ask for help regarding Kubernetes related issues"
          ],
          "ChannelsAddedTo": [
            "bugs",
            "help---devops",
            "help---cloud",
            "help---kube"
          ]
        }
      ]
    }
  ]
}

If anyone would be kind enough to point me in the right direction, it would be very much appreciated 🙂

@aaronrothschild
Copy link

@nicolas-goudry do you have any server logs you can share with us regarding this? cc @hanzei

@nicolas-goudry
Copy link
Author

@aaronrothschild Unfortunately, this error occurred on a test instance that I since trashed…

As far as I can remember, I think that this was linked to the fact that the plugin can’t open DM when the following option is set in Mattermost System Console: Site Configuration > Users and Teams > Enable users to open Direct Message channels with > Any member of the team.

I might not be of any help as I’m not sure if this was the problem that triggered this error, and I can’t test it anymore as I managed to setup the plugin correctly…

Feel free to close this issue!

@boredomdenied
Copy link

boredomdenied commented Jan 6, 2022

I've tried toggling that and a bit other things without success. I opened #89 If either of you has a clue how to help it would be greatly appreciated for you to provide guidance/feedback. Thank you.

@Kshitij-Katiyar Kshitij-Katiyar added the Type/Bug Something isn't working label Apr 12, 2024
@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
Type/Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants