RocketChat / RocketChat/Rocket.Chat
Outgoing webhook with x-www-form-urlencoded not working
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 46.1k
- Forks
- 13.9k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 130
Description
I wanna trigger a third party api when specified command is issued.
In some reason, I have to use "x-www-form-urlencoded".
But, unfortunately my parameter is not passed.
my "outgoing webhook" script is:
return {
url: request.url,
method: "POST",
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
data: 'token=SOME_TOKEN&ref=master'
};
The third party api is triggered successfully.
But It could not get the value of token and the value of ref.
- Rocket.Chat version: 0.65.1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.