question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Prohibiting SSE via POST breaks `graphql-sse` usage (since 1.11.0)

See original GitHub issue

Since 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:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
n1ru4lcommented, Dec 22, 2021

@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

0reactions
dan-leecommented, Mar 19, 2022

Fixed in v1.12.0

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found