Closed mr-nagashima closed 2 hours ago
Caused by https://github.com/ardatan/graphql-mesh/issues/6424. The bug was introduced by https://github.com/ardatan/graphql-mesh/pull/5420 (this used to work fine before that).
An isolated, minimal reproduction would be good for us in order to debug so that we can try to fix it after.
Hi @ardatan , @Francismb created a reproduction here earlier: https://github.com/ardatan/graphql-mesh/issues/5438#issuecomment-1590313857
And I had created this reproduction originally: https://github.com/mbrowne/graphql-mesh-bug-repro/tree/grpc-source-issue
There's also a lot of info in https://github.com/ardatan/graphql-mesh/issues/5438 that you might find helpful for debugging.
Actually I took a closer look at https://github.com/Francismb/graphql-mesh-issue and it doesn't reproduce the issue for me because it apparently depends on a gRPC server not included in that repo. Here are updated/fixed instructions on how to more simply reproduce the issue using my branch:
git clone git@github.com:mbrowne/graphql-mesh-bug-repro.git --single-branch --branch grpc-source-issue
yarn
yarn start
Thanks for the reproduction! Fixed by https://github.com/ardatan/graphql-mesh/pull/7807
@ardatan Thanks! I'll take a closer look at this later. I still think there is a bug in @graphql-tools/stitch
, but if your fix makes gRPC work properly without needing to fix that bug then that's awesome! :-)
Issue workflow progress
Progress of the issue based on the Contributor Workflow
Describe the bug
The backend's gRPC API provides nine services.
I wrote the .meshrc.yaml below.
.meshrc.yaml
And when I started GraphQL Mesh in dev mode, I got an error at the end.
I think that the reflection has been loaded, the above error occurs at the very end. What does "Invalid value used as weak map key" indicate?
I would appreciate it if you could tell me the solution.
To Reproduce Steps to reproduce the behavior:
Expected behavior
Start normally
Environment:
@graphql-mesh/...
:Additional context