Prohibiting SSE via POST breaks `graphql-sse` usage (since 1.11.0)
See original GitHub issueSince v1.11.0
text/event-stream
/ SSE requests are forbidden via POST
:
POST requests that try to execute Subscription operations will now receive an error and 405 status code. This is not considered a breaking change as SSE is not doable over POST by the specification and was never officially supported.
In helix-flare
tests we are using graphql-sse
to create a subscription connection. It seems, that graphql-sse
uses POST
and body
to instantiate a connection which is now refused by graphql-helix
.
Tests are running fine for helix-flare
with graphql-helix@1.10.3
but are failing for 1.11.0
.
Am I wrong here by assuming that this should actually work fine with POST
requests, or should I choose a different approach?
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Prohibiting SSE via POST breaks graphql-sse usage ... - GitHub
Since v1.11.0 text/event-stream / SSE requests are forbidden via POST: POST requests that try to execute Subscription operations will now ...
Read more >Keysight KCOS 9.30 Third Party & Open-Source License ...
source software used by the Keysight KCOS software. ... graphql-sse 1.0.6 : MIT License ... node-webassemblyjs 1.11.0 : MIT License.
Read more >GraphQL Subscriptions: Why we use SSE/Fetch over ...
This post explains why we've decided to take this approach and think it's better than using WebSockets. What is a GraphQL Subscription? GraphQL ......
Read more >@graphql-sse/server - npm Package Health Analysis | Snyk
This package provide utility function for implementing GraphQL Subscriptions transport over Server Send Events. This package is inspired by the ...
Read more >GraphQL over SSE (Server-Sent Events) – The Guild
Specifically, when using GraphQL subscriptions or streaming operations (like with @defer and @stream directives), you do exactly this - you send ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@dan-lee @kefniark PR welcome for lifting the constraint 😇 Sorry for causing the troubles, we discussed it internally ans we dont see why we should not allow it for now, as the official spec is still pretty vague (aka non-existing 😅)!
Slightly related: I would also appreciate any comments and thoughs on https://github.com/graphql/graphql-over-http/issues/167
Fixed in
v1.12.0