Open henry-delgado opened 3 years ago
If you set UseWebSocketForQueriesAndMutations
, it does what it says: It tries to use the websocket for mutations and queries, too.
I don't think that's supported by the AWS AppSync websocket endpoint... so please try to set that to false
...
Hi @rose-a , I have tried that too and still get the same error. I tried both removing that setting and also tried explicitly setting it to false.
I created the subscription at the start of the (mobile) application then I see it failing on the following WebSocketException with the error Unable to connect to the remote server
public static void CreateSubscription()
{
var subscriptions = new CompositeDisposable();
subscriptions.Add(Client.WebSocketReceiveErrors.Subscribe(e =>
{
if (e is WebSocketException we)
Console.WriteLine($"WebSocketException: {we.Message} (WebSocketError {we.WebSocketErrorCode}, ErrorCode {we.ErrorCode}, NativeErrorCode {we.NativeErrorCode}");
else
Console.WriteLine($"Exception in websocket receive stream: {e.ToString()}");
}));
subscriptions.Add(CreateSubscription("1"));
}
Hi everyone, I have a proof of concept on AppSync/GraphQL.Client. I am successfully querying and creating GraphQL mutations. However, I get an error when trying to subscribe.
Error:
Unable to connect to the remote server
Stack Trace:I was reading on AWS App Sync documentation that the web socket URL is different from the GraphQL Endpoint.
I am trying to follow the example from the integration test
Code
View Full Source Code (Gist
I have read similar issues such #333 but that has not helped and wonder if anyone could help me out.
Thanks