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
Subscriptions do not work in the getting started example #67
Comments
Hello @jamessmith-decisionlab . Thank you for this bug report, we will take a look of it. |
I transferred this issue to |
Thanks! |
If you prefer (or need) to stay with the To fix your subscription, I think you have to unwrap the This is a break changes from |
Good morning. I cannot upgrade, unfortunately, because of this issue: I would be very grateful if you could provide any wisdom on this. |
Hi. I now have My schema:
The resolver:
The query:
And the response:
If I add a breakpoint at the |
I started a new project and followed each step of the tutorial and everything works fine on my side. When looking at your SDL & code, I don't see anything which could explain your isssue. However, here are extra steps which if not done, could explain your issue:
|
Yes to all of those, I'm afraid. What I could do is build the application from scratch again, but my hunch is it won't make any difference. |
Could you try to clone the If subscriptions are working properly with it, maybe you should check if you find differences between the code from it and your own. If it doesn't work neither I really don't know what's happening here 😢 |
Happy to give it a go! |
I'm afraid I get the same problem. This query...
...gives me this response:
|
@jamessmith-decisionlab if you encounter the same behaviour with Also, if you are on You could probably try to create a brand new virtualenv and re-install Did you try to run this through |
I agree. It's most likely a platform issue if it's working for you and not for me. I'm on a Mac, I'm guessing you are on Linux or inside Docker which would also be on Linux? I've already tried a clean install for the tutorial so I agree that won't make a difference. I think if I tried this through Docker and it worked, it wouldn't help a whole lot except perhaps in adding more weight to the belief that it is a platform issue. I'm using Insomnia so I don't have network tools but a The only thing I can offer to assist is that I debugged the application and the user defined subscription resolver is not being invoked. An instance of the I'm using |
My bad, I was presuming you were using the As far as I know, Insomnia doesn't support websockets. I tried to run the subscription request on Insomnia and I reproduce your issue. I suggest you to use the If you re-launch the tutorial from |
Ah, right! Let me quickly give that a go. |
Boom! Worked. Many thanks! |
tartiflette-aiohttp
= "^0.8.4"Python version is 3.7.4
I've copied the code from the getting started example on the website line for line, but the subscriptions aren't working. The default subscription resolver on line 145 of the
factory.py
file is being invoked rather than the one defined in the application.Please can you check?
The text was updated successfully, but these errors were encountered: