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
And it seems now we have to do some kind of a proxy. This has not happened since last week. We changed nothing in our system, and it has started spitting this error out. So, I am not sure what I should try now and how I should change the code so it works:
I have created a proxy in AWS and then added it with https-proxy-agent but it does not work, the error still happens.
The only way it currently works is if I use, with the node-fetch instance, a reject unauthorized param on a https agent
consthttpsAgent=newhttps.Agent({rejectUnauthorized: false// Disables TLS certificate validation (not good for long term use)});constcustomFetch=(url,options={})=>{options.agent=httpsAgent;// Add the custom agent to each requestreturnfetch(url,options);};this.shopify=createAdminRestApiClient({storeDomain: process.env.SHOPIFY_URL,apiVersion: '2024-10',accessToken: process.env.SHOPIFY_ADMIN_API_TOKEN,customFetchApi: customFetch// Pass the custom fetch API});
However, now I keep getting socket hang up errors at random times. However, no TLS issues anymore.
Issue summary
Before opening this issue, I have:
@shopify/admin-api-client
package and version: 1.0.4 + node-fetch 2.7.0 (as a fetch agent)This happens even on the deployed app that never had issues. We have the app deployed on AWS ECR/ECS.
Below you can find errors happening continuously:
I was reading around
And it seems now we have to do some kind of a proxy. This has not happened since last week. We changed nothing in our system, and it has started spitting this error out. So, I am not sure what I should try now and how I should change the code so it works:
The text was updated successfully, but these errors were encountered: