Shopify Theme Dev 401 API Request Unauthorized Error

When I run the **shopify theme dev** command, I get a 401 API request unauthorized error.

The login was successful and I tried logging out and logging back in a couple times, but still the same issue.

Anybody know how to fix this issue?

3 Likes

found the same proplem

2 Likes

same problem, we need help !

https://community.shopify.com/c/technical-q-a/resolving-the-invalid-target-error-in-shopify-cli-any-solutions/m-p/1822476

I found this, and fix my problem.
The first, you need to get your store name, you can find it in the URL.

then, run the **shopify theme dev --store {store_name}** ,done.

good luck

1 Like