Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All POSTs with enhanced forms throw error 'multipart/form-data not supported' #7673

Closed
hanszoons opened this issue Nov 16, 2022 · 0 comments
Closed

Comments

@hanszoons
Copy link
Contributor

hanszoons commented Nov 16, 2022

Describe the bug

Latest sveltekit update breaks all enhanced forms. All POSTs with enhanced forms results in a 500 error.

Downgrading to @sveltejs/kit@1.0.0-next.546 reverses this problem.

Maybe something to do with #7494 ?

Reproduction

  • Install Demo app via npm create svelte@latest
  • run dev, try to post in Sverdle

Logs

multipart/form-data not supported
NotSupportedError: multipart/form-data not supported
    at Request.formData (node:internal/deps/undici/undici:2383:19)
    at enter (/src/routes/sverdle/+page.server.js:57:30)
    at call_action (file:///Users/hans/dev/test-sveltekit-bug/node_modules/@sveltejs/kit/src/runtime/server/page/actions.js:204:9)
    at handle_action_json_request (file:///Users/hans/dev/test-sveltekit-bug/node_modules/@sveltejs/kit/src/runtime/server/page/actions.js:42:22)
    at render_page (file:///Users/hans/dev/test-sveltekit-bug/node_modules/@sveltejs/kit/src/runtime/server/page/index.js:44:11)
    at async resolve (file:///Users/hans/dev/test-sveltekit-bug/node_modules/@sveltejs/kit/src/runtime/server/index.js:241:17)
    at async respond (file:///Users/hans/dev/test-sveltekit-bug/node_modules/@sveltejs/kit/src/runtime/server/index.js:292:20)
    at async file:///Users/hans/dev/test-sveltekit-bug/node_modules/@sveltejs/kit/src/exports/vite/dev/index.js:413:22

System Info

System:
    OS: macOS 13.0.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 2.04 GB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.9.0 - ~/.nvm/versions/node/v18.9.0/bin/node
    npm: 8.19.1 - ~/.nvm/versions/node/v18.9.0/bin/npm
  Browsers:
    Chrome: 107.0.5304.110
    Firefox: 105.0.2
    Safari: 16.1
  npmPackages:
    @sveltejs/adapter-auto: next => 1.0.0-next.88 
    @sveltejs/kit: next => 1.0.0-next.548 
    svelte: ^3.46.0 => 3.53.1 
    vite: ^3.1.0 => 3.2.4

Severity

blocking all usage of SvelteKit

Additional Information

No response

@hanszoons hanszoons changed the title multipart/form-data not supported All POSTs with enhanced forms throw error 'multipart/form-data not supported' Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant