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

TypeError: First parameter has member 'readable' that is not a ReadableStream. #167

Closed
5 tasks done
colin4k opened this issue Mar 7, 2023 · 2 comments
Closed
5 tasks done
Labels
duplicate This issue or pull request already exists

Comments

@colin4k
Copy link

colin4k commented Mar 7, 2023

Describe the bug

npm run dev

novel-gpt@0.0.1 dev
astro dev

file:///home/ubuntu/workspace/chatgpt-demo/node_modules/node-fetch-native/dist/shared/node-fetch-native.2b047dc1.mjs:432
throw new TypeError(${context} is not a ReadableStream.);
^

TypeError: First parameter has member 'readable' that is not a ReadableStream.
at assertReadableStream (file:///home/ubuntu/workspace/chatgpt-demo/node_modules/node-fetch-native/dist/shared/node-fetch-native.2b047dc1.mjs:432:21)
at convertReadableWritablePair (file:///home/ubuntu/workspace/chatgpt-demo/node_modules/node-fetch-native/dist/shared/node-fetch-native.2b047dc1.mjs:3509:11)
at ReadableStream.pipeThrough (file:///home/ubuntu/workspace/chatgpt-demo/node_modules/node-fetch-native/dist/shared/node-fetch-native.2b047dc1.mjs:3584:33)
at fetchFinale (/home/ubuntu/workspace/chatgpt-demo/node_modules/undici/lib/fetch/index.js:973:52)
at mainFetch (/home/ubuntu/workspace/chatgpt-demo/node_modules/undici/lib/fetch/index.js:773:5)

Reproduction

npm run dev

System Info

System:
    OS: Linux 5.4 Ubuntu 18.04.6 LTS (Bionic Beaver)
    CPU: (2) x64 AMD EPYC 7551 32-Core Processor
    Memory: 592.95 MB / 972.42 MB
    Container: Yes
    Shell: 4.4.20 - /bin/bash
  Binaries:
    Node: 16.19.1 - /usr/bin/node
    npm: 9.6.0 - /usr/bin/npm

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
@chency7
Copy link

chency7 commented Mar 7, 2023

升级nodejs 到 18以上的版本

@ddiu8081
Copy link
Member

ddiu8081 commented Mar 7, 2023

Duplicate of #65

@ddiu8081 ddiu8081 marked this as a duplicate of #65 Mar 7, 2023
@ddiu8081 ddiu8081 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 7, 2023
@ddiu8081 ddiu8081 added the duplicate This issue or pull request already exists label Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants