RocketChat / RocketChat/Rocket.Chat

Outgoing webhook with x-www-form-urlencoded not working

Open
#11,244 0 comments 0 reactions 1 assignee View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.