My task is failing because of a permissions problem. Why?

Mechanic works hard to detect necessary permissions, and prompt you for them up front. If you see an error message like this one, it means that Mechanic wasn't able to detect everything necessary ahead of time.

This issue can almost always be solved by generating the right preview actions, demonstrating to Mechanic what exactly you intend to do. When you're working on your task code, look at the "Preview" section, and work to make sure that all of the important Shopify actions show up there.

Start learning about previews here: Core / Tasks / Previews

We highly recommend you stick with the task preview approach. But if you get stuck we have now introduced a permissions tag that allows you to explicitly state the permissions your task requires.

Having trouble getting your permissions and previews to line up? Try asking in our community Slack workspace. Sharing your task code there is a good way to get suggestions about how to move forward. :)

Last updated

Was this helpful?