user-1
(User 1)
November 2, 2023, 10:27pm
1
This topic was automatically generated from Slack. You can find the original thread here .
Hey there the original connector to Shopify is not working anymore and I created through Shopify Developer App configured private App in shopify and using the Admin API token but getting this error:
user-1
(User 1)
November 2, 2023, 10:27pm
2
Can you try using that same app with a basic query to make sure it’s working, like this one?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
shopify_developer_app: {
type: "app",
app: "shopify_developer_app",
}
},
async run({steps, $}) {
const data = {
"query": `{
shop {
id
name
email
}
}`,
}
return await axios($, {
method: "post",
url: `https://${this.shopify_developer_app.$auth.shop_id}.[myshopify.com/admin/api/2023-04/graphql.json](http://myshopify.com/admin/api/2023-04/graphql.json)`,
headers: {
"X-Shopify-Access-Token": `${this.shopify_developer_app.$auth.access_token}`,
"Content-Type": `application/json`,
},
data,
})
},
})
user-1
(User 1)
November 2, 2023, 10:27pm
3
Since that error is coming from Shopify and sounds like there’s an issue w/ the token