Troubleshooting
Fix Shopify 401 Invalid API key or access token in Duaer
A Shopify 401 in Duaer means Shopify rejects the token: the wrong value, the wrong shop subdomain, or a token that changed after reinstalling the app.
What the error looks like in Duaer
[API] Invalid API key or access token (unrecognized login or wrong password), HTTP 401.
Check each field in Duaer
- Is it the access token? The Admin API access token starts with shpat_. Neither the API key nor the API secret key is it.
- Shop Subdomain is only the xxx of xxx.myshopify.com: no custom domain, no https://.
- After the app is reinstalled or the token rotated, the old token stops working. Put the new one in the Duaer Shopify credential.
- Duaer tests the connection when you save; then run the node with Execute step.
When it is 403, not 401
403 means the token is valid but lacks a scope, such as read_orders. Add it under the app Admin API scopes, reinstall, and put the new token in Duaer. When Shopify Trigger receives events but fails verification, check APP Secret Key in the credential.
Questions
Which token goes into the Duaer Shopify credential?
The Duaer Shopify Access Token credential takes the Admin API access token starting with shpat_, and Shop Subdomain is only the part before myshopify.com.
Shopify worked in Duaer, then suddenly returned 401. Why?
The app was likely reinstalled or the token rotated. Put the new token in the Duaer credential.
In this section
Set up Shopify credentials in Duaer
Store Shopify connection details in Duaer for digital-organization nodes to use at runtime. Secrets are protected by the instance encryption key and are not written into node parameters.
App recipesSend new Shopify orders to Google Sheets with Duaer
In Duaer, every new Shopify order adds a row to Google Sheets with the order number, email, total, and items.
ErrorsFix Google invalid_grant and 7-day token expiry in Duaer
When a Gmail, Google Sheets, or Google Drive credential in Duaer fails with invalid_grant after a few days, the Google app is usually still in Testing. Publish it and reconnect.