Summary
I have an issue with a slash command.When I try my custom command I have this error:
Command with a trigger of ‘post’ failed
Steps to reproduce
My mattermost server is running on windows in a docker and is configured on http://127.0.0.1:8065
I set the site url to: http://127.0.0.1:8065
I added a slash command with this config:
Request URL : http://127.0.0.1:5000/post
Request Method: POST
I also have a flask server running on http://127.0.0.1:5000/
which has one route
@app.route('/post', methods=['POST', 'GET'])
def post():
data = request.form
print(data)
I added
"EnableInsecureOutgoingConnections": true,
"AllowedUntrustedInternalConnections": "localhost",
to config.json, default.json and config-docker.json
Expected behavior
When I try /post in the defaukt Town Square channel I get Command with a trigger of ‘post’ failed
detailed_error: ""
id: "api.command.execute_command.failed.app_error"
message: "Command with a trigger of 'post' failed"
request_id: "a5n1xkch77g9zb9u6a61456age"
status_code: 500
Do you have an idea to solve this ?