sveltejs / kit

web development, streamlined
https://svelte.dev/docs/kit
MIT License
18.73k stars 1.94k forks source link

Requests hanging with adapter-node #5450

Closed johnnysprinkles closed 2 years ago

johnnysprinkles commented 2 years ago

Describe the bug

Today I did "npm update" after a long time to get everything current (still on 1.0.0-next.250). Got the latest (1.0.0-next.367) and my requests started hanging. So then I tried a brand new SvelteKit project and the same thing is happening. Details below.

Reproduction

  1. Standard setup instructions
    npm create svelte my-app
    cd my-app
    npm install
  2. Switch to adapter node and build/run
    npm i @sveltejs/adapter-node

    Edit svelte.config.js to be

    - import adapter from '@sveltejs/adapter-auto';
    + import adapter from '@sveltejs/adapter-node';

    Build/run

    npm run build
    node build/index.js

Looks like it fires up on 3000 but requests spin forever.

Logs

No response

System Info

System:
    OS: macOS 11.6
    CPU: (8) x64 Intel(R) Core(TM) i7-4750HQ CPU @ 2.00GHz
    Memory: 524.16 MB / 8.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 18.5.0 - ~/.nvm/versions/node/v18.5.0/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 8.12.1 - ~/.nvm/versions/node/v18.5.0/bin/npm
  Browsers:
    Chrome: 103.0.5060.114
    Firefox: 101.0.1
    Safari: 14.1.2
    Safari Technology Preview: 15.4
  npmPackages:
    @sveltejs/adapter-auto: next => 1.0.0-next.55
    @sveltejs/adapter-node: ^1.0.0-next.79 => 1.0.0-next.79
    @sveltejs/kit: next => 1.0.0-next.367
    svelte: ^3.44.0 => 3.49.0
    vite: ^2.9.13 => 2.9.14

Severity

blocking an upgrade

Additional Information

No response

n-pn commented 2 years ago

duplicate of https://github.com/sveltejs/kit/issues/5431

johnnysprinkles commented 2 years ago

Oh sorry, I did see that one but thought it was his unlimited request body size issue. Closing.