-
Notifications
You must be signed in to change notification settings - Fork 10
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
Subscription failed since 1.7.9 #465
Comments
I tried reverting to version 1.7.8, but the issue persists. I assume it’s a dependent library that didn’t adapt well to the changes. |
Could you give more details about your setup so we can help you better? |
Thank you for this quick response: What is the protocol you use to communicate with the gateway > websocket i use nestJs/yoga for my subgraph with WS. Subscription work fine but not subscription response after pubsub |
The major change I can identify is the upgrade to graphql-ws 6.0, which I don't see in version 1.7.9 but is present in the main branch. |
Because we haven't released it yet. |
i try to do it all work correctly with this
|
I see but it seems we still need a reproduction to debug by ourselves. |
Hi @Irupt , thank you for reporting. As @ardatan mentioned before, we need a minimal reproduction that can help us to reproduce and identify the issue. It can be very minimal. Also, you mentioned some changes in the versions that caused this change, can you maybe share with us the Thank you! |
I just upgraded the Hive version to 1.8.0, and I still have the same error. As soon as I have some time, I'll create a GitHub repository with a test example. In the meantime, I'll stick with 1.7.8. |
Oh so 1.7.8 works? Because you said it doesn't. |
I must have expressed myself poorly, excuse my English. Everything works correctly with version 1.7.8, but it doesn't work with 1.7.9 and 1.8.0. |
Could you share your package.json and the lockfile at least? Then we can see the exact versions used. |
sure, it's a nx monorepo |
Thanks @Irupt @enisdenjo @ardatan ! The fix is now available in |
Since the latest version, the subscription seems to be causing an issue. I am able to connect to the WS server, but I consistently encounter an error when receiving a subscription response.
[2025-01-16T15:31:19.442Z] ERROR Error: Cannot return null for non-nullable field Mesure.CODE. 2025-01-16 16:31:19 at completeValue (/usr/app/node_modules/@graphql-tools/executor/cjs/execution/execute.js:434:19) 2025-01-16 16:31:19 at executeField (/usr/app/node_modules/@graphql-tools/executor/cjs/execution/execute.js:328:25) 2025-01-16 16:31:19 at executeFields (/usr/app/node_modules/@graphql-tools/executor/cjs/execution/execute.js:270:28) 2025-01-16 16:31:19 at collectAndExecuteSubfields (/usr/app/node_modules/@graphql-tools/executor/cjs/execution/execute.js:702:23) 2025-01-16 16:31:19 at completeObjectValue (/usr/app/node_modules/@graphql-tools/executor/cjs/execution/execute.js:692:12) 2025-01-16 16:31:19 at completeValue (/usr/app/node_modules/@graphql-tools/executor/cjs/execution/execute.js:458:16) 2025-01-16 16:31:19 at completeValue (/usr/app/node_modules/@graphql-tools/executor/cjs/execution/execute.js:432:27) 2025-01-16 16:31:19 at executeField (/usr/app/node_modules/@graphql-tools/executor/cjs/execution/execute.js:328:25) 2025-01-16 16:31:19 at executeFields (/usr/app/node_modules/@graphql-tools/executor/cjs/execution/execute.js:270:28) 2025-01-16 16:31:19 at executeOperation (/usr/app/node_modules/@graphql-tools/executor/cjs/execution/execute.js:234:18) { 2025-01-16 16:31:19 path: [ 'surveillance_graphqlpubsub_mesureSub', 'CODE' ], 2025-01-16 16:31:19 locations: [ { line: 8, column: 3 } ], 2025-01-16 16:31:19 extensions: [Object: null prototype] {}
The text was updated successfully, but these errors were encountered: