Hi,
we are trying to open an interactive dialog, but we get the following error:
mattermostdriver.exceptions.InvalidOrMissingParameters: Ungültiger oder fehlender dialog in Anfrage.
(mattermostdriver.exceptions.InvalidOrMissingParameters: Invalid or missing dialog in request).
We are using Mattermost 5.14.1 Enterprise and we trigger the dialog with a slash command, as framework we are using Python 3.5 / uwsgi / Python-Mattermost-Driver (GitHub - Vaelor/python-mattermost-driver: Python Mattermost Driver for APIv4)
Python Code:
# Mattermost Connector
mm.login()
payload = {
'trigger_id' : request.form['trigger_id'],
'url' : 'https://localhost/echo',
'dialog' : {
'callback_id' : 'cb-ver',
'title' : 'Veranstaltung',
'elements' : [{'display_name' : 'Email',
'name' : 'email',
'type' : 'text'}],
"submit_label":"Submit",
"state":"somestate"
}
}
jsonpayload=json.dumps(payload)
mm.client.make_request('post', '/actions/dialogs/open', options=jsonpayload, params=None, data=None, files=None, basepath=None)
payload = {'text': 'Output: ' + jsonpayload}
return jsonify(payload)
Appreciate your help,
Regards
Chris