Assistance Needed: Continuous Page Refresh Issue with Shopify App

Solved

Assistance Needed: Continuous Page Refresh Issue with Shopify App

Usama_Talib
Shopify Partner
5 1 10

I am currently experiencing an issue with a Shopify app I have developed. The app is continuously refreshing, and I have identified the following error in the console:WebSocket connection to 'wss://kai-application-candidates-yeast.trycloudflare.com/' failed: setupWebSocketDespite creating a new app, the issue persists. I have ensured that all configurations are correctly set up, but the problem continues to affect the app's functionality.Could any body please assist me in identifying the root cause of this issue and provide guidance on how to resolve it? Your help in this matter would be greatly appreciated.

Accepted Solutions (4)

weebySagar
Shopify Partner
6 1 3

cbodtorf
Shopify Partner
8 1 2

This is an accepted solution.

run

shopify auth logout

 and then try again.

View solution in original post

rmani
Shopify Partner
2 1 3

This is an accepted solution.

It seems it's working now, using standard Cloudflare tunnel, not ngrok.

View solution in original post

Usama_Talib
Shopify Partner
5 1 10

This is an accepted solution.

Hi folks,

I have a solution for this issue. If you're experiencing continuous refreshing of your app and encountering WebSocket connection errors like "WebSocket connection to 'wss://kai-application-candidates-yeast.trycloudflare.com/' failed: setupWebSocket," ensure that your toml file and ".env" file have consistent credentials. This issue can often occur due to mismatched credentials between these files. Refreshing your app may resolve the issue temporarily, but syncing the credentials in both files should provide a more permanent fix.

Hope this helps!

View solution in original post

Replies 18 (18)

HammadSaleem
Shopify Partner
1 0 3

Yes facing the same issue since this morning ...............

mfaizan
Shopify Partner
1 0 2

"I've been dealing with the same issue since this morning as well. It's been quite frustrating any updates or solutions yet?

gajera-harsh
Shopify Partner
10 1 4

I also facing same issue since morning did you find any solution ?

mindaugasL
Shopify Partner
1 0 1

Tried to clear cache and cookies, restart dev server etc, nothing helps. The app page keeps refreshing all the time showing Websocket connection failed for cloudflare app URL.

Usama_Talib
Shopify Partner
5 1 10

I applied  this solution but in my case this is not working. But thanks for solution.

gajera-harsh
Shopify Partner
10 1 4

Has anyone resolved this issue?

emre_altunkaya
Shopify Partner
2 0 0

Wrong thread, Post it as a new comment.

Usama_Talib
Shopify Partner
5 1 10

I am still facing 

HollyPalm
Shopify Partner
1 0 3

It is an issue that needs to be resolved urgently. We expect very fast support.

rmani
Shopify Partner
2 1 3

I'm experiencing the same issue since yesterday. Looking for a solution.

Usama_Talib
Shopify Partner
5 1 10

I encountered this issue yesterday, but after clearing my browser cache, my project started working again without any problems. Everything was running smoothly until this morning when the issue resurfaced. I tried several solutions, but unfortunately, none of them worked this time.

joboob
Shopify Partner
2 0 2

Same thing here, dev team wasted many hours already

skamarakas
Shopify Partner
3 0 3

same

Papajoe911
Shopify Partner
1 0 2

Same problem here.....

weebySagar
Shopify Partner
6 1 3

This is an accepted solution.

cbodtorf
Shopify Partner
8 1 2

This is an accepted solution.

run

shopify auth logout

 and then try again.

rmani
Shopify Partner
2 1 3

This is an accepted solution.

It seems it's working now, using standard Cloudflare tunnel, not ngrok.

Usama_Talib
Shopify Partner
5 1 10

This is an accepted solution.

Hi folks,

I have a solution for this issue. If you're experiencing continuous refreshing of your app and encountering WebSocket connection errors like "WebSocket connection to 'wss://kai-application-candidates-yeast.trycloudflare.com/' failed: setupWebSocket," ensure that your toml file and ".env" file have consistent credentials. This issue can often occur due to mismatched credentials between these files. Refreshing your app may resolve the issue temporarily, but syncing the credentials in both files should provide a more permanent fix.

Hope this helps!