calvinl
05/16/2017, 4:24 PMapollo-client and isomorphic-fetch on my localhost (from nodejs). this is the error I get:
Error: Network error: request to https://api.graph.cool/simple/v1/[redacted] failed, reason: write EPROTO 140736015500224:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:../deps/openssl/openssl/ssl/s23_clnt.c:769:
This is on an Express server. It works on the browser side.
P.S. Congrats on the Product Hunt launch guys!nilan
05/16/2017, 4:24 PMnilan
05/16/2017, 4:24 PMapollo-client and isomorphic-fetchnilan
05/16/2017, 4:25 PMapollo-client with node directly, is that a hard requirement for you?calvinl
05/16/2017, 4:25 PMconst client = new ApolloClient({
ssrMode: true,
networkInterface: createNetworkInterface({
uri: GRAPHQL_ENDPOINT,
opts: {
credentials: 'same-origin',
// https://github.com/matthew-andrews/isomorphic-fetch/issues/83
headers: req.headers,
},
}),
});calvinl
05/16/2017, 4:26 PMcalvinl
05/16/2017, 4:27 PMGRAPHQL_ENDPOINT is the URL to the simple API on graphcoolnilan
05/16/2017, 4:33 PMcalvinl
05/16/2017, 4:34 PMcalvinl
05/16/2017, 4:34 PMnilan
05/16/2017, 4:34 PMnilan
05/16/2017, 4:35 PMopts you're passing?calvinl
05/16/2017, 4:35 PMnilan
05/16/2017, 4:35 PMnilan
05/16/2017, 4:36 PMnilan
05/16/2017, 4:36 PMcalvinl
05/16/2017, 4:36 PMcalvinl
05/16/2017, 4:37 PMnilan
05/16/2017, 4:38 PMcalvinl
05/16/2017, 4:39 PMcalvinl
05/16/2017, 4:39 PMcalvinl
05/16/2017, 4:40 PMcalvinl
05/16/2017, 4:45 PMnilan
05/16/2017, 4:49 PMnilan
05/16/2017, 4:50 PMnilan
05/16/2017, 4:50 PMcalvinl
05/18/2017, 3:18 AM