Open jonasrosland opened 7 years ago
Thanks for bringing this up. I think webtask changed some of the defaults they use when creating the webtask.
Add the --parse-body
option to the wt create
command and see if that works for you. This will tell the webtask to parse the request body into a JSON object and put it on ctx.data
. This used to be done automatically in some cases.
If this works, I'll update the docs (since I don't think there's anything I can do in the code to enable this flag).
Hi, I know this issue is like months old but @doowb your solution above worked for me. Please update the readme :) 👍
Thanks, I'll get the readme updated.
Hi,
I've tried this out by following your steps using webtask.io, and I keep getting the following error:
Steps I used:
wt create dist/main.js --name my-slack-invite-name --secret SLACK_TEAM='mygroup' --secret SLACK_TOKEN='xoxp-my-secret-token'
jonas.rosland@gmail.com
, and get the error above.What am I doing wrong? Do I need to install the NPM package locally as well?