mercurius-js / mercurius

Implement GraphQL servers and gateways with Fastify
https://mercurius.dev/
MIT License
2.34k stars 234 forks source link

Scalar with variable inputs detected for parsing AST literals. This is not supported. #689

Open sooxt98 opened 2 years ago

sooxt98 commented 2 years ago

Im getting this error when using JSONObject scalars, and i cant find a way to mute it, im not sure where that error came from, fastify setErrorHandler & mercurius errorFormatter capture nothing

This error shows at 2nd request when server restarted or input variable changes

https://github.com/mercurius-js/mercurius/issues/530#issue-939870879 https://github.com/prisma/prisma/issues/5062#issuecomment-997454232

https://www.graphql-scalars.dev/docs/scalars/json-object

mcollina commented 2 years ago

Can you please include a reproducible example? A repo with everything setup to reproduce it would be great. Thanks!