You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not quite sure if the issue relies on graphql-ws or if something has changed on react-native that affects graphql-ws somehow. This is happening on both ws:localhost and wss:// on Testflight builds.
this is the GraphQLWsLink on "@apollo/client": "3.7.16" with "graphql-ws": "^5.13.1"
constwsLink=newGraphQLWsLink(createClient({url: webSocketUri,lazy: true,shouldRetry: ()=>true,retryAttempts: Infinity,retryWait: (_count)=>newPromise((r)=>setTimeout(()=>r(),1000)),on: {ping: (received)=>{if(!received/* sent */){timedOut=setTimeout(()=>{/* a close event `4499: Terminated` is issued to the current WebSocket and an artificial `{ code: 4499, reason: 'Terminated', wasClean: false }` close-event-like object is immediately emitted without waiting for the one coming from `WebSocket.onclose` calling terminate is not considered fatal and a connection retry will occur as expected see: https://github.com/enisdenjo/graphql-ws/discussions/290 */wsLink.client.terminate();},5000);}},pong: (received)=>{if(received){clearTimeout(timedOut);}},closed: (error: any)=>{console.log("socket closed : code %s, reason : %s",error.code,error.reason);if(error.code!==1000){disconnectedVar(true);}},connected: ()=>{if(disconnectedVar()){disconnectedVar(false);}},error: (err: any)=>{console.log(`error in sockets, code: ${err.code}, reason: ${err.reason}`);}},connectionParams: async()=>{constaccessToken=awaitgetAccessTokenRefresh();if(accessToken?.token){return{headers: {Authorization: `Bearer ${accessToken.token}`}};}return{};}}));
The text was updated successfully, but these errors were encountered:
After upgrading from
react-native@0.71.11
to0.72.0
I get this error response from Hasura2.27.0
on iOS, on Android it works fine.socket closed : code 4400, reason : {"server_error_msg":"4400: Connection initialization failed: Malformed Authorization header"}
I'm not quite sure if the issue relies on
graphql-ws
or if something has changed on react-native that affectsgraphql-ws
somehow. This is happening on bothws:localhost
andwss://
on Testflight builds.this is the
GraphQLWsLink
on"@apollo/client": "3.7.16"
with"graphql-ws": "^5.13.1"
The text was updated successfully, but these errors were encountered: