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

Unable to connect to connect my store. #2037

Closed
mhmdjaw opened this issue Apr 25, 2024 · 10 comments
Closed

Unable to connect to connect my store. #2037

mhmdjaw opened this issue Apr 25, 2024 · 10 comments

Comments

@mhmdjaw
Copy link

mhmdjaw commented Apr 25, 2024

What is the location of your example repository?

No response

Which package or tool is having this issue?

CLI

What version of that package or tool are you using?

7.1.2

What version of Remix are you using?

2.6

Steps to Reproduce

I'm able to login and link my shopify account but after that when I run h2 link I get this error message "message": "Access denied for hydrogenStorefronts field. Required access: Request must be initiated from the Shopify CLI and user must have full access to apps or access to the Hydrogen channel."

I found a post of other people having the same issue here but no solution was found to fix the actual problem.

Expected Behavior

Pull the env variables from the storefront.

Actual Behavior

Error message

@bensparrowdev
Copy link

Also experiencing this

@graygilmore
Copy link
Contributor

Do you have the Hydrogen sales channel installed on the shop you're trying to connect to?

@mhmdjaw
Copy link
Author

mhmdjaw commented Apr 30, 2024

@graygilmore yes. and I’m able to connect my app to it by manually entering environment variables locally. The problem is that I can’t auto pull with h2 link and I get the error mentioned above even though I’m logged in with the CLI.

@graygilmore
Copy link
Contributor

And the user you're logging in with can access the Hydrogen sales channel in the admin, too? If yes, I'll need to do a little debugging on my side but I'll need something to go off of. Try it again and there should be a "Request ID" below the error. Copy and paste that here and we can dig into it.

@blittle
Copy link
Contributor

blittle commented Jun 21, 2024

Closing due to lack of response. Please re-open if still an issue.

@blittle blittle closed this as completed Jun 21, 2024
@tomferez
Copy link

tomferez commented Nov 9, 2024

Also experiencing this, tried everything to no avail. Only 1 user as admin.

CLI version: 3.69.3
@shopify/hydrogen: 2024.7.0

ENV variables configured locally.

Headless app installed on the sales channel.
Hydrogen app not installed on the sales channel

Request id: a1c4af32-50f9-4406-9171-23dff51ca001-1731110938

@Lucian-Lang
Copy link

I'm currently facing the same problem. Was anyone able to find a solution?

@tomferez
Copy link

I'm currently facing the same problem. Was anyone able to find a solution?

It suddenly worked yesterday and is now no longer working. Hard to understand how and when and if and why.

@graygilmore
Copy link
Contributor

@tomferez

Headless app installed on the sales channel.
Hydrogen app not installed on the sales channel

Hydrogen CLI commands (e.g. h2 link) only work with the Hydrogen sales channel and have never worked with the Headless sales channel. When you say "it suddenly worked yesterday and is now no longer working" what exactly was working that isn't now?

@Jckhe
Copy link

Jckhe commented Dec 31, 2024

@graygilmore well due to the lack of official support and docs that help clear this up- most people use the headless channel to generate their API keys to populate the env with (per youtube guides and other sources)..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants