-
Notifications
You must be signed in to change notification settings - Fork 2k
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
An error has occured for subscription 'chatMessageAdded' # #528
Comments
Looks like I'm also facing this – the subscriptions stopped working after a recent upgrade. Rolling back to It is likely that this breaking change causes the issue: graphql/graphql-js#918 I guess that things like |
I can confirm this problem. It works with |
+1 I'm experience this issue with 0.11.* as well. Downgrading to 0.10.5 resolves the issue. |
+1 I'm experience this issue too. Downgrading resolves. |
Ping @stubailo @martijnwalraven. It is likely that all the apollo newcomers are installing a broken version – might be crucial to fix ASAP. |
This is still an issue for me and downgrading to 0.10.5 resolves it. Ideally, I'd like to use 0.11. |
@AkimaLunar: What version of |
@martijnwalraven It's |
@AkimaLunar: The latest version of |
Any updates on this? |
@perrosnk This seems unrelated to this issue (which should be solved in recent versions of |
Yes: subscribe: withFilter(
() => pubsub.asyncIterator(ON_NEW_ROUND),
(roundData, args, { userOnDB }) => {
if (!userOnDB || !userOnDB.complete) {
return false;
}
return _.some(roundData.data, userOnDB.id);
},
), Although I am not sure about it it might be related to this: graphql/graphql-js#918 (comment) I am starting the server like this: new SubscriptionServer({
schema: executableSchema,
execute,
subscribe,
onConnect,
// onOperation: (message, params) => {
// console.log('onOperation');
// },
onDisconnect: (a) => {
console.log('Disconnecting');
},
}, {
server: ws,
path: GRAPHQL_PATH,
}); I am pulling the try {
const result = await subscribe(...);
if (result.errors) {
// errors are informative and can be sent to the client
} else {
// result is guaranteed to be an AsyncIterable at this point
return result;
}
} catch (error) {
// system error, log the problem and send a failure response to the client.
} |
I suspect this problem has been resolved quite some time ago, so I'll close this. If anyone is still experiencing the problem, please feel free to open a new issue with a reproduction using a recent version of Apollo Server. Thanks! |
Hello, I receive next error message from backend
{message: "Cannot read property 'then' of undefined"}
I believe the issue related to https://github.com/graphql/graphql-js/releases/tag/v0.11.0
Thanks.
The text was updated successfully, but these errors were encountered: