Open JohnEmadNashed opened 3 years ago
Have the same in web:
apolloClient.subscribe({query: TaskSubscription}).subscribe({next: console.warn});
Occurred after update from v2 with this configuration:
const httpLink = createAppSyncLink({
...credentials,
resultsFetcherLink: ApolloLink.from([
setContext((_request, previousContext) => ({
headers: {
...previousContext.headers,
'x-api-key': AppSyncConfig.API_KEY as string,
},
})),
createHttpLink({
uri: AppSyncConfig.API_URL,
}),
]),
complexObjectsCredentials: (): null => null,
});
export const apolloClient = new AWSAppSyncClient(
{
...credentials,
disableOffline: true,
},
{
link: httpLink,
cache: new InMemoryCache({addTypename: false}) as any,
}
);
Current behavior steps to reproduce
1- Subscribe to Appsync with stable network connectivity 2- Disable network connectivity 3- App shows Error: "error":{"errors":[{"message":"Connection failed: Connection handshake error"}]}}, is it fatal: true undefined undefined. 4- Afterwards the app crashes on production level.
The JS code where it crashes:
React Native version affected.