-
Notifications
You must be signed in to change notification settings - Fork 3
Conversation
…whisk-action-builder
This PR will trigger a patch release when merged. |
src/index.js
Outdated
let res; | ||
if (/^multipart\/formdata|application\/x-www-form-urlencoded/.test(request.headers.get('content-type'))) { | ||
context.log.info('Getting parameters from formdata'); | ||
const data = await request.formData(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stefan-guggisberg I'm getting an error here:
"message":"Something went wrong TypeError: request.formData is not a function\n at setupLogger (/var/task/index.js:476651:34)\n at /var/task/index.js:15760:12\n at /var/task/index.js:16173:30\n at /var/task/index.js:16129:12\n at /var/task/index.js:39796:13\n at Namespace.run (/var/task/index.js:39775:5)\n at Namespace.runAndReturn (/var/task/index.js:39795:8)\n at wrap (/var/task/index.js:16112:24)\n at /var/task/index.js:16228:23\n at Runtime.lambda [as handler] (/var/task/index.js:3060:28)"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, that's documented: https://github.com/adobe/helix-fetch/blob/main/README.md#about
Response.formData()
is not implemented.
Feel free to create an issue if you need it.
Codecov Report
@@ Coverage Diff @@
## master #450 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 12 12
Lines 195 195
=========================================
Hits 195 195 Continue to review full report at Codecov.
|
No description provided.