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
GraphiQL Explorer error message for subscriptions after switching to graphql-ws #1079
Labels
Comments
Same here, but I do not think it is due to |
A quick hack: --- ariadne/explorer/templates/graphiql.html.orig
+++ ariadne/explorer/templates/graphiql.html
@@ -70,6 +70,7 @@
<script>
var fetcher = GraphiQL.createFetcher({
url: window.location.href,
+ subscriptionUrl: `${(window.location.protocol === 'https:' ? 'wss' : 'ws')}://${window.location.host}${window.location.pathname}`,
});
function AriadneGraphiQL() { |
TMuszczekk
added
to do
and removed
roadmap
Feature that we want to have included
labels
Mar 19, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I am using the latest Ariadne 0.19 and just switched from the deprecated
subscriptions-transport-ws
protocol tographql-ws
for my GraphQL subscriptions. The change went smoothly for my client application, but now GraphiQL explorer displays the following error message, when I try to test a subscription via GraphiQL:Here is how I initialize my GraphQL ASGI-App:
The text was updated successfully, but these errors were encountered: