File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
packages/api-client/src/helpers/magentoLink Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @vue-storefront/magento-api " : minor
3+ ---
4+
5+ ** [ CHANGED] ** - increase the HttpAgent socket timeout from ` 10s ` to ` 30s ` to prevent timeout errors on slow connections.
Original file line number Diff line number Diff line change @@ -11,7 +11,9 @@ import possibleTypes from "../../types/possibleTypes.json";
1111import standardURL from "../url/standardURL" ;
1212
1313const { HttpsAgent } = AgentKeepAlive ;
14- const agent = new HttpsAgent ( ) ;
14+ const agent = new HttpsAgent ( {
15+ timeout : 30000 ,
16+ } ) ;
1517
1618const createErrorHandler = ( ) =>
1719 onError ( ( { graphQLErrors, networkError } ) => {
@@ -48,7 +50,7 @@ export const apolloLinkFactory = (
4850) => {
4951 const baseLink =
5052 handlers ?. apolloLink ||
51- setContext ( ( apolloReq , { headers } ) => ( {
53+ setContext ( ( _apolloReq , { headers } ) => ( {
5254 headers : {
5355 ...headers ,
5456 } ,
You can’t perform that action at this time.
0 commit comments