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

Open
mhmdjaw opened this issue Apr 25, 2024 · 4 comments
Open

Unable to connect to connect my store. #2037

mhmdjaw opened this issue Apr 25, 2024 · 4 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.

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

4 participants