Describe the bug
When trying to run the server using the Node.js http2 module and createSecureServer(), requests always return this error:
{
"message": "POST body sent invalid JSON.",
"extensions": {
"code": "BAD_REQUEST",
"originalError": {
"name": "TypeError",
"message": "bodyInit.stream is not a function"
}
}
}
Your Example Website or App
https://codesandbox.io/p/devbox/great-fog-v5xjzq?file=%2Fsrc%2Fmain.ts%3A41%2C1
Steps to Reproduce the Bug or Issue
- Create a cert for localhost with https://github.com/FiloSottile/mkcert (
mkcert -install, mkcert localhost)
- Run the example code.
- Make a request to the server, e.g. with Graphiql.
Expected behavior
The request should have worked normally. Or perhaps that there should have been a Typescript error indicating that createSecureServer and yoga are incompatible.
Screenshots or Videos
No response
Platform
- OS: Windows 11
- NodeJS: 22.14.0
@graphql-yoga/* version(s): 5.12.0
Additional context
No response
Describe the bug
When trying to run the server using the Node.js
http2module andcreateSecureServer(), requests always return this error:Your Example Website or App
https://codesandbox.io/p/devbox/great-fog-v5xjzq?file=%2Fsrc%2Fmain.ts%3A41%2C1
Steps to Reproduce the Bug or Issue
mkcert -install,mkcert localhost)Expected behavior
The request should have worked normally. Or perhaps that there should have been a Typescript error indicating that
createSecureServerandyogaare incompatible.Screenshots or Videos
No response
Platform
@graphql-yoga/*version(s): 5.12.0Additional context
No response