Re: Cloudflare Error: "Unauthorized: Failed to get tunnel"

Solved

Cloudflare Error: "Unauthorized: Failed to get tunnel"

mason_childers1
Shopify Partner
1 0 10

Tried to run npm dev and received this error:

╭─ error ──────────────────────────────────────────────────────────────────────╮
│                                                                              │
│  2023-10-09T01:22:48Z ERR Failed to serve quic connection                    │
│  error="Unauthorized: Failed to get tunnel" connIndex=0 event=0              │
│  ip=198.41.200.73                                                            │
│                                                                              │
│  2023-10-09T01:22:49Z ERR Failed to serve quic connection                    │
│  error="Unauthorized: Failed to get tunnel" connIndex=0 event=0              │
│  ip=198.41.200.73                                                            │
│                                                                              │
│  2023-10-09T01:22:54Z ERR Failed to serve quic connection                    │
│  error="Unauthorized: Failed to get tunnel" connIndex=0 event=0              │
│  ip=198.41.200.73                                                            │
│                                                                              │
│  2023-10-09T01:23:07Z ERR Failed to serve quic connection                    │
│  error="Unauthorized: Failed to get tunnel" connIndex=0 event=0              │
│  ip=198.41.200.73                                                            │
│                                                                              │
│  2023-10-09T01:23:17Z ERR Failed to serve quic connection                    │
│  error="Unauthorized: Failed to get tunnel" connIndex=0 event=0              │
│  ip=198.41.200.73                                                            │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

This is my first time coming back to the app since Friday, however, it was working on Friday and I haven't done anything to it since. I ensured that my API token was correct and couldn't find much documentation on the possible error. I would really appreciate some help on this, as I'm relatively new to app development.

Accepted Solution (1)

gonzaloriestra
Shopify Staff
4 2 14

This is an accepted solution.

It looks like a Cloudflare issue.

 

As a workaround, you can manually create a tunnel with another provider and pass the URL. For example, with Ngrok:

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Replies 35 (35)

geobertz
Shopify Partner
27 0 22

geobertz_0-1696819021435.png


Any luck about this? I have the same issue tried 
npm run dev -- --reset but it didn't work
tried to reset ip didn't work

This is so frustrating.

geobertz

danhho
Shopify Partner
22 1 6

I have a same issue

wl-markvo
Shopify Partner
1 0 2

same issue too

geobertz
Shopify Partner
27 0 22

I tried reaching out with shopify support but this is what I get 😞 

geobertz_0-1696820905802.png

 

geobertz

huzhop
Shopify Partner
9 0 5

The same issue.

walover_llc
Shopify Partner
7 2 2

I have the same issue.

devPramod
Shopify Partner
22 0 13

It's working for me till yesterday night. now it's not working might be a Cloudflare server issue. Hope will fix soon.

VictorCQ
Shopify Partner
4 0 2

I get same issue :((

iDoThemes
Trailblazer
207 43 93

Happening here too trying to spin up a new app + function so I don't think it's a config or local issue.

 

Possibly related to https://www.cloudflarestatus.com/

Developer of Liquify Chrome Extension -- Enhance the Shopify Theme Code Editor
.




Theme Developer -- Drop me a line

MerJason
Shopify Partner
1 0 1

Working with the Checkout UI ext and suddenly failed some hours agao

Adliaz
Shopify Partner
5 0 2

I'm having the same issue at this moment. Hoping Shopify could give us a solution to this.

khoivu
Shopify Partner
1 0 2

I think Cloudflare have some issues. You can check on this status page: Cloudflare Status

Magecomp-User
Shopify Partner
3 0 1

I'm having the same issue at this moment. 

Ronak3
Shopify Partner
14 1 4

Same issue from my side as well.

kalp
Shopify Partner
3 0 2

Same issue

devPramod
Shopify Partner
22 0 13

Now it is restored for me. it's a Cloudflare issue.

ThangCQ
Shopify Partner
30 3 7

Right now, it's fine for me

huzhop
Shopify Partner
9 0 5

Is it working on your end?

geobertz
Shopify Partner
27 0 22

Still not working on my end though

geobertz
kalp
Shopify Partner
3 0 2

Not working for me as well

ThangCQ
Shopify Partner
30 3 7

It not work again

Ridzz
Shopify Partner
11 2 0

Yes, it is throwing error again.

AvocadosLab
Shopify Partner
51 4 44

Not working for us too! 

Ridzz
Shopify Partner
11 2 0

Now it's working for me.

amitappaspect
Shopify Partner
3 0 3

Not working for now. I think there is Issue with https://www.cloudflarestatus.com/

kalp
Shopify Partner
3 0 2

Its working now for me

 

amitappaspect
Shopify Partner
3 0 3

Yes. Right now It is working fine. maybe cloudfare have fixed the issue. 

Sabarinath
Shopify Partner
2 0 0

Is there another method to operate the application?

geobertz
Shopify Partner
27 0 22

You can create a temporary development server using heroku, and deploy it there. In your app setup settings change the URLs to your deployed heroku app url.. but seeing changes you make wont reflect real time you have to deploy it to heroku every time which is not good.. 

I hope this gets fixed ASAP

geobertz

geobertz
Shopify Partner
27 0 22

Its no longer working agaid, sad

geobertz

Liam
Shopify Staff
2873 312 821

Hi folks,

 

Thanks for flagging this - it does appear to be cloudflare related but our team are currently looking into this issue, will report back asap. 

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

gonzaloriestra
Shopify Staff
4 2 14

This is an accepted solution.

It looks like a Cloudflare issue.

 

As a workaround, you can manually create a tunnel with another provider and pass the URL. For example, with Ngrok:

To learn more visit the Shopify Help Center or the Community Blog.

walover_llc
Shopify Partner
7 2 2

This method is wonderful. I thought it would be helpful for developers if this was also mentioned in the Readme or such at https://github.com/Shopify/shopify-app-template-remix

sushansht
Shopify Partner
4 0 2

while setting up ngrok as you have mentioned, I have faced CORS issue eventhough I have handled CORS in Laravel. There is no CORS issue while using Cloudflare. Is there something we need to do while using Shopify CLI for ngrok since cloudflare is not much reliable service. Is there any different how shopify handles cloudflare request vs ngrok request?

appdev2023
Shopify Partner
20 2 3

Today Cloudflare is down AGAIN for hours.

 

Would Shopify consider DROPPING Cloudflare please??

 

I don't know why Shopify switched to Cloudflare from NGROK. There are also plenty of other options, such as https://localtunnel.me I see the option to pass a third party tunnel, but the docs are unhelpful and it seems unusable.