Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Unable to authenticate #4876

Open
2 tasks done
chenrupo opened this issue Nov 19, 2024 · 27 comments
Open
2 tasks done

[Bug]: Unable to authenticate #4876

chenrupo opened this issue Nov 19, 2024 · 27 comments
Labels
Area: @shopify/theme @shopify/theme package issues Severity: 3 Normal Severity Type: Bug Something isn't working

Comments

@chenrupo
Copy link

Please confirm that you have:

  • Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
  • Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?

Other

Expected behavior

I should have clicked the link, logged in as shop owner, verified the code, and been granted access in the CLI

Actual behavior

I clicked the login link, logged in as owner, verified the code, and got an error in the CLI

Verbose output

error

You are not authorized to use the CLI to develop in the provided store.          
                                                                                   
You can't use Shopify CLI with development stores if you only have Partner       
staff member access. If you want to use Shopify CLI to work on a development     
store, then you should be the store owner or create a staff account on the       
store.                                                                           
                                                                                 
If you're the store owner, then you need to log in to the store directly using   
the store URL at least once before you log in using Shopify CLI.Logging in to    
the Shopify admin directly connects the development store with your Shopify      
login.

Reproduction steps

  1. Run command shopify theme push --store storename
  2. Press any key to login
  3. login as shop owner
  4. Return to terminal

Operating System

MacOs Sonoma 14.4.1

Shopify CLI version (check your project's package.json if you're not sure)

3.70.0

Shell

bash

Node version (run node -v if you're not sure)

22.9.0

What language and version are you using in your application?

No response

@chenrupo chenrupo added the Type: Bug Something isn't working label Nov 19, 2024
@chenrupo
Copy link
Author

Note: I was directed here by shopify support, who elevated the issue up two tiers and eventually told me to create an issue here.

@arnoldski
Copy link

arnoldski commented Nov 20, 2024

I'm having the same issue...
Is it working again on your side @chenrupo ?

@chenrupo
Copy link
Author

@arnoldski No, I'm still having this issue. Shopify support assured me that they were working on it, for whatever that's worth! Hoping this gets resolved soon.

@mgmanzella
Copy link
Contributor

👋 can you share the verbose output of the command after running it? we need more information to debug -- thanks in advance

@chenrupo
Copy link
Author

@mgmanzella verbose output.txt
thanks!

@lukeh-shopify
Copy link
Contributor

@mgmanzella verbose output.txt thanks!

Hi @chenrupo - from the logs it looks like you are trying to access mystore.myshopify.com. Is that your correct store name? Please ensure the store provided with the --store flag matches the store that you are logging into via the browser during the authentication step.

@chenrupo
Copy link
Author

@lukeh-shopify Nope, I changed the shop name in the logs. The shop name I am using in the command is the same as the shopname I am logging into.

@Dexmente
Copy link

So no response yet, right @chenrupo ?

@chenrupo
Copy link
Author

@Dexmente Nothing yet :(

@mgmanzella
Copy link
Contributor

👋 can you resend the logs in their original form with the command you're running to me in the partners slack? we need your real shop domain in order to debug so please don't modify them in any way, you can DM it to me at Morisa Manzella

@chenrupo
Copy link
Author

@mgmanzella done, thanks!

@mgmanzella mgmanzella added Theme Sev-2 second highest severity for theme related bug and removed State: Waiting for feedback labels Nov 25, 2024
@aswamy
Copy link
Contributor

aswamy commented Nov 26, 2024

Hey @chenrupo, have you tried running the same command with your original domain for your shop? It can be found under "Settings > Domains". It should have "Redirects to " under it.

So your equivalent command would be: shopify theme push --store <original_domain>

@chenrupo
Copy link
Author

@aswamy That worked! Thanks!

@arnoldski
Copy link

Anybody an update on this issue?

@aswamy
Copy link
Contributor

aswamy commented Nov 28, 2024

@arnoldski for now, the temporary solution should fix the immediate problem. You can also set the environment variable (SHOPIFY_FLAG_STORE) before running shopify theme push.

@lorix74
Copy link

lorix74 commented Dec 4, 2024

I had the same problem, the workaround worked, hope it can be solved.

@mgmanzella mgmanzella added Severity: 3 Normal Severity and removed Theme Sev-2 second highest severity for theme related bug labels Dec 5, 2024
@branlok
Copy link

branlok commented Dec 12, 2024

Hello I'm also getting this issue suddenly mid-way development. I already authenticated once since yesterday. Today everything was going smoothly until I realize my changes weren't propagating, so I try to reauthenticate.

ran shopify theme dev --store myshop again

I followed the verification procedure. Then return to terminal I'm prompted with:

╭─ error ──────────────────────────────────────────────────────────────────────╮
│                                                                              │
│  You are not authorized to use the CLI to develop in the provided store.     │
│                                                                              │
│  You can't use Shopify CLI with development stores if you only have Partner  │
│   staff member access. If you want to use Shopify CLI to work on a           │
│  development store, then you should be the store owner or create a staff     │
│  account on the store.                                                       │
│                                                                              │
│  If you're the store owner, then you need to log in to the store directly    │
│  using the store URL at least once before you log in using Shopify           │
│  CLI.Logging in to the Shopify admin directly connects the development       │
│  store with your Shopify login.                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯Ï

Note: I'm using my own/shop owners account.

The workaround suggested above does not work for me.

@peepers-rick
Copy link

Hello I'm also getting this issue suddenly mid-way development. I already authenticated once since yesterday. Today everything was going smoothly until I realize my changes weren't propagating, so I try to reauthenticate.

ran shopify theme dev --store myshop again

I followed the verification procedure. Then return to terminal I'm prompted with:

╭─ error ──────────────────────────────────────────────────────────────────────╮
│                                                                              │
│  You are not authorized to use the CLI to develop in the provided store.     │
│                                                                              │
│  You can't use Shopify CLI with development stores if you only have Partner  │
│   staff member access. If you want to use Shopify CLI to work on a           │
│  development store, then you should be the store owner or create a staff     │
│  account on the store.                                                       │
│                                                                              │
│  If you're the store owner, then you need to log in to the store directly    │
│  using the store URL at least once before you log in using Shopify           │
│  CLI.Logging in to the Shopify admin directly connects the development       │
│  store with your Shopify login.                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯Ï

Note: I'm using my own/shop owners account.

The workaround suggested above does not work for me.

I'm having the same problem as @branlok out of nowhere. I've been developing on this same store for years. It worked this morning, then out of nowhere this popped up. I've tried all the workarounds posted here and on the support forums with no luck.

@grocco
Copy link

grocco commented Dec 12, 2024

There must be something wrong going on on Shopify's side; I am experiencing the same error right now out of nowhere mid development.

@aaronmarkle
Copy link

Also experiencing this error:

╭─ error ──────────────────────────────────────────────────────────────────────╮
│ │
│ You are not authorized to use the CLI to develop in the provided store. │
│ │
│ You can't use Shopify CLI with development stores if you only have Partner │
│ staff member access. If you want to use Shopify CLI to work on a │
│ development store, then you should be the store owner or create a staff │
│ account on the store. │
│ │
│ If you're the store owner, then you need to log in to the store directly │
│ using the store URL at least once before you log in using Shopify │
│ CLI.Logging in to the Shopify admin directly connects the development │
│ store with your Shopify login. │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯Ï

@valnovak
Copy link

Same issue!

@martin2810
Copy link

I also experiencing this error... It doesn't work. I have tried everything: https://store.myhsopify.com, without myshopify and the original domain name...

@joshkirk
Copy link

All of a sudden I can't log into the store I'm working on as a staff account. Same issue as all the other commenters, and the store URL hasn't changed.

@peepers-rick
Copy link

Lots of others commenting here: https://community.shopify.dev/t/getting-you-are-not-authorized-to-use-the-cli-to-develop-in-the-provided-store-error/2642/19

Someone who has access to the Shopify Partners slack indicated that they're aware of it and it's an infrastructure issue. Would be nice if https://shopifystatus.com could update us.

@martin2810
Copy link

It seems to work right now! :)

@patrick-mcdougle
Copy link

Anyone who has commented in the last 40 minutes should check again, seems to be working again.

@grundmanise
Copy link

It works for me now, although I'm not sure if it was related to the shopify app info command - as it started working at that time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: @shopify/theme @shopify/theme package issues Severity: 3 Normal Severity Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests