Hi everyone!
I’m doing some request with Shopify GraphQL API, and I have an error that I dont know how to fix.
import axios from "axios"
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
const response = await axios.post(
'https://*************.myshopify.com/admin/api/2022-10/graphql.json',
{
query: `
query {
products(first: 100 query:"status:'active' tag:'analyse_vhs'") {
edges {
node {
id
title
}
}
}
}`
},
{
headers: {
"Content-Type": "application/json",
'X-Shopify-Access-Token': '*******************'
}
}
)
return response;
},
})
I’m making a request to get a list of products, sometimes that works well but mostly I got this error
Is there from Pipedream, Axios or Shopify?