Hello there ! Firstly I would thanks you for this library.
While the querying part over HTTP works well, I encountered an issue using WebSocket.
When I try to connect an absinthe web socket I get an error from Req even before sending the request.
The code triggering the error:
From the documentation of SlipStream on version 1.1.1 "Headers must be provided as two-tuples where both elements are binaries" while the Req headers format is a map.
I locally fixed the issue replacing req.headers by
Hello there ! Firstly I would thanks you for this library.
While the querying part over HTTP works well, I encountered an issue using WebSocket. When I try to connect an absinthe web socket I get an error from Req even before sending the request. The code triggering the error:
The interesting part of the error is :
The error happens on https://github.com/CargoSense/absinthe_client/blob/c178e4d2daa74e00d9773997d4e7e9bc47d1f02e/lib/absinthe_client/web_socket.ex#L173
From the documentation of SlipStream on version 1.1.1 "Headers must be provided as two-tuples where both elements are binaries" while the Req headers format is a map.
I locally fixed the issue replacing
req.headers
byBut I'm not sure using Jason to encode values as string is the best option.