Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Use Universal Runtime #450

Merged
merged 11 commits into from
Mar 6, 2021
Merged

Use Universal Runtime #450

merged 11 commits into from
Mar 6, 2021

Conversation

trieloff
Copy link
Contributor

@trieloff trieloff commented Mar 5, 2021

No description provided.

@github-actions
Copy link

github-actions bot commented Mar 5, 2021

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();
Copy link
Contributor Author

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)"

Copy link
Contributor

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
Copy link

codecov bot commented Mar 5, 2021

Codecov Report

Merging #450 (23ce8f0) into master (bd80327) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b909b4e...23ce8f0. Read the comment docs.

@trieloff trieloff merged commit 5cfbfc8 into master Mar 6, 2021
@trieloff trieloff deleted the universal-runtime branch March 6, 2021 10:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants