-
-
Notifications
You must be signed in to change notification settings - Fork 628
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception: OperationException(linkException: ResponseFormatException(originalException: FormatException: Unexpected character (at character 1) #1350
Comments
You server is returning |
Correct @robertoestivill In any case, I am closing this due to the lack of minimal reproducible example |
Hi @robertoestivill @vincenzopalazzo do u have any example of subs implementation? seems ur documentation not proper yet. Open an issue for that one as well here: #1349 Updated the example as well with postman screenshot |
Updated. Now I saw these on the log. flutter: Initialising connection
flutter: Disconnected from websocket.
flutter: Initialising connection
flutter: Disconnected from websocket.
flutter: Initialising connection Mean successfully connecting to subscription/websocket? |
you may are setting the wrong ws protocol? |
so this one (#1350 (comment)) still not connected to subscription/websocket? |
the ws has different protocols |
hmm what u mean diff protocols? or do u have any idea what code should i check? Coz basically, i just added this code. final AuthLink authLink =
AuthLink(getToken: () => 'Bearer $currentToken');
final Link linkSplitted = authLink.split(
(request) => request.isSubscription,
webSocketLink,
httpLink,
); and the result is this: #1350 (comment) If I remove that like this one. final Link linkSplitted = httpLink.split(
(request) => request.isSubscription,
webSocketLink,
httpLink,
); I will got an error like this one: #1350 (comment) |
this #1206 should have a basic configuration of the ws, also please check the documentation and also research about grahql ws protocols |
let me check ur idk why prev i dont see it. |
Hi, @vincenzopalazzo @robertoestivill have a question. In Postman, if I don't send a
{
"id": "{{$randomUUID}}",
"payload": {
"data": "{\"query\":\"subscription updateCheckout { onUpdateCheckout(userId: \\\"{{userId}}\\\") { userId createdAt amount checkoutId maxAllowedAmount maxAvailableAmount message state trancheId }}\"}",
"extensions": {
"authorization": {
"Authorization": "{{cognitoIdToken}}",
"host": "{{apiHost}}"
}
}
},
"type": "start"
}
subscription MySubscription {
onUpdateCheckout(userId: $userId) {
createdAt
checkoutId
maxAllowedAmount
maxAvailableAmount
message
state
trancheId
}
} So my question is, how can I send a |
Postman.
example code of subs
logs
The text was updated successfully, but these errors were encountered: