-
Notifications
You must be signed in to change notification settings - Fork 342
subscribeToMore: GraphQL subscription error (cannot read property 'then' of undefined) #277
Comments
try to stay on graphql-js ^0.10.0 |
I have the same issue, any updates? |
1 similar comment
I have the same issue, any updates? |
I am getting |
I'm Installed "graphql": "^0.10.5" and worked for me |
This was fixed with #261 |
This fixes the "Cannot read property 'then' of undefined" error we've been getting in prod constantly. Ref issue: apollographql/subscriptions-transport-ws#277 Fixes #2305, fixes #2310
Has the fixed been released? I had this problem. Had to downgrade to graphql 0.10.5 |
Yeah, upgrading to the latest version resolved it for me at the time. |
Hmmm... I must have some version conflicts going on.
with graphql 0.11 I was gettting this error message, moving to 0.10.5 seemed to have worked (still testing) |
That's not the latest version of
Also, you don't need Make sure to use the same version of |
Yeah, I've been playing a delicate version number dance to get this
working. I'll try this particular cocktail and see if it works.
…On Fri, Mar 2, 2018 at 1:52 PM, Ian Martorell ***@***.***> wrote:
That's not the latest version of subscriptions-transport-ws though! I'm
not sure what version introduced the fix, but these are the ones I'm on
right now, everything working perfectly:
"apollo-cache-inmemory": "^1.1.5",
"apollo-client": "^2.2.0",
"apollo-link": "^1.0.7",
"apollo-link-http": "^1.3.2",
"apollo-link-ws": "^1.0.4",
"apollo-utilities": "^1.0.4",
"graphql": "^0.12.3",
"subscriptions-transport-ws": "^0.9.5"
Also, you don't need graphql-subscriptions on the client.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#277 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAElJuOHR0FH-HP8BHNTyqWsifLc3B6Jks5taaMEgaJpZM4PfLNS>
.
|
This issue is nearly a year old, and I'm getting the following error:
Should I still be using version 0.10? Right now I'm using version 11.7 and am somewhat tied to that version since the |
You might have an old version of |
Thanks @ianmartorell . I discovered the issue I had, I wasn't matching the arguments in my query to what I had defined in my schema server side. All my libraries are up to speed now and working, the only one I had to downgrade was graphql from 0.13.2 to 0.13.0.
Be sure to match your gql query with what's defined in the schema (in my js client):
And my schema (defined on the server side in aws appsync):
Could probably close this issue. |
apollo-client: 1.9.2
apollo-angular: 0.13.1
subscriptions-transport-ws: 0.8.3
angular: 4.4.3
The text was updated successfully, but these errors were encountered: