Quantcast
Channel: Trouble Shooting - Mattermost Peer-to-Peer Forum
Viewing all articles
Browse latest Browse all 327

Slash command unable to execute API call, works with curl

$
0
0

@tuxlover wrote:

Summary

I have an API on AWS API Gateway that works with all other tools but Slash Commands just gives an error.

Expected behavior

I have an API on AWS Gateway that returns a simple JSON object that I want to use for a Slash Command.
I tried it with different tools, including curl from the machine running Mattermost and they all return the correct result.

Observed behavior

Using the same URL from within a Slash Command just gives me a Cloudfront 403 Error, pasted here from the log without the HTML and without some server details.

Command with a trigger of 'slashtest' returned response 403 Forbidden. Details:
ERROR
The request could not be satisfied.
Bad request.
Generated by cloudfront (CloudFront)
Request ID:

Now, I see that there is a non-mattermost component in the error message, but as no other tool has trouble calling the API I suspect that Mattermost does something on it's own.
Does someone know how Mattermost calls APIs form inside a slash command? Are any parameters or headers added or changed?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 327

Trending Articles