How to resolve NGROK error 6022 with Shopify CLI?

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.

1 Like

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

1 Like