Client tooling expects a payload with an errors array, however when an error is thrown inside a subscription's AsyncIterator, we get a websocket message that looks something like this:
When throwing in the subscription's resolve() method, we get the correct error structure.
This seems to be cause by this line. I would make a PR to fix, but this repository seems unmaintained. Once I get some kind of confirmation from maintainers that my time won't be wasted, I'll spend time on fixing this.
Client tooling expects a payload with an
errors
array, however when an error is thrown inside a subscription's AsyncIterator, we get a websocket message that looks something like this:When throwing in the subscription's
resolve()
method, we get the correct error structure.This seems to be cause by this line. I would make a PR to fix, but this repository seems unmaintained. Once I get some kind of confirmation from maintainers that my time won't be wasted, I'll spend time on fixing this.