hydrogen icon indicating copy to clipboard operation
hydrogen copied to clipboard

Unable to connect to connect my store.

Open mhmdjaw opened this issue 1 year ago • 4 comments

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

mhmdjaw avatar Apr 25 '24 01:04 mhmdjaw

Also experiencing this

bensparrowdev avatar Apr 25 '24 21:04 bensparrowdev

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

graygilmore avatar Apr 30 '24 00:04 graygilmore

@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.

mhmdjaw avatar Apr 30 '24 00:04 mhmdjaw

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.

graygilmore avatar Apr 30 '24 00:04 graygilmore

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

blittle avatar Jun 21 '24 15:06 blittle