Solved

How to resolve NGROK error 6022 with Shopify CLI?

vm_user_xx12312
Shopify Partner
2 1 2

Hi everyone!

 

I was trying to work with shopify cli but I got stuck at the beginning.

 

When I do `shopify app serve` I do not get any error from the cmd line but when I click on the link I get a page with an error by ngrok --> ERR_NGROK_6022 Before you can serve HTML content, you must sign up for a free ngrok account and install your authtoken.

 

I tried to open a ngrok tunnel manually and it worked, I could reach the app and install it, however there are some hardcoded redirections that I cannot change once installed so I get the same error.

 

Did anyone got the same issue?

 

I tried already to refresh Ngrok token and modify manually the config file etc. Not sure what's wrong.

Accepted Solution (1)

vm_user_xx12312
Shopify Partner
2 1 2

This is an accepted solution.

Ok rookie mistake - I never did `shopify app tunnel stop` between tests so the actual tunnel never updated the key cause I thought that killing the `shopify app serve` execution was enough.

 

So, if you have the same issue RTFM - sorry for wasting your time

View solution in original post

Reply 1 (1)

vm_user_xx12312
Shopify Partner
2 1 2

This is an accepted solution.

Ok rookie mistake - I never did `shopify app tunnel stop` between tests so the actual tunnel never updated the key cause I thought that killing the `shopify app serve` execution was enough.

 

So, if you have the same issue RTFM - sorry for wasting your time