TypeError: Response body object should not be disturbed or locked #3115
Unanswered
MinhNguyen5199
asked this question in
Q&A
Replies: 1 comment
-
@MinhNguyen5199 can you please share a repo with the full example code so we could run it? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
`// src/app/api/graphql/route.ts
import { createYoga } from 'graphql-yoga'
import { schema } from '../../../../graphql/schema'
const { handleRequest } = createYoga({
schema,
graphqlEndpoint: '/api/graphql',
fetchAPI: { Response },
})
export { handleRequest as GET, handleRequest as POST}
`
this block of code makes TypeError: Response body object should not be disturbed or locked.
Beta Was this translation helpful? Give feedback.
All reactions