cli: pollTunnelStatus [as _onTimeout]
Please confirm that you have:
- Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
- Reproduced the issue in the latest CLI version.
In which of these areas are you experiencing a problem?
App
Expected behavior
Be able to start a dev server
Actual behavior
Throwing the above error
Verbose output
npm verb cli [
npm verb cli '/usr/local/Cellar/node/20.2.0/bin/node',
npm verb cli '/usr/local/bin/npm',
npm verb cli 'run',
npm verb cli 'dev',
npm verb cli '--verbose'
npm verb cli ]
npm info using npm@8.1.0
npm info using node@v20.2.0
npm timing npm:load:whichnode Completed in 0ms
npm timing config:load:defaults Completed in 2ms
npm timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 2ms
npm timing config:load:builtin Completed in 2ms
npm timing config:load:cli Completed in 2ms
npm timing config:load:env Completed in 1ms
npm timing config:load:file:/Users/joeainsworth/Shopify/functions/xmiles/xmiles-vol-discount/.npmrc Completed in 4ms
npm timing config:load:project Completed in 6ms
npm timing config:load:file:/Users/joeainsworth/.npmrc Completed in 5ms
npm timing config:load:user Completed in 5ms
npm timing config:load:file:/usr/local/Cellar/node/20.2.0/etc/npmrc Completed in 0ms
npm timing config:load:global Completed in 0ms
npm timing config:load:validate Completed in 1ms
npm timing config:load:credentials Completed in 1ms
npm timing config:load:setEnvs Completed in 1ms
npm timing config:load Completed in 21ms
npm timing npm:load:configload Completed in 21ms
npm timing npm:load:setTitle Completed in 1ms
npm timing npm:load:setupLog Completed in 0ms
npm timing config:load:flatten Completed in 3ms
npm timing npm:load:cleanupLog Completed in 2ms
npm timing npm:load:configScope Completed in 0ms
npm timing npm:load:projectScope Completed in 1ms
npm timing npm:load Completed in 34ms
> xmiles-vol-discount@1.0.0 dev
> shopify app dev
╭─ info ───────────────────────────────────────────────────────────────────────╮
│ │
│ Using your previous dev settings: │
│ │
│ • Org: Storebuzz │
│ • App: xyz │
│ • Dev store: xyz.myshopify.com │
│ • Update URLs: Not yet configured │
│ │
│ To reset your default dev config, run `npm run dev -- --reset` │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ error ──────────────────────────────────────────────────────────────────────╮
│ │
│ │
│ To investigate the issue, examine this stack trace: │
│ at pollTunnelStatus [as _onTimeout] │
│ (@shopify/app/src/cli/services/dev/urls.ts:106) │
│ if (result.status === 'error') return reject(new │
│ BugError(result.message)) │
│ at listOnTimeout (node:internal/timers:573) │
│ at processTimers (node:internal/timers:514) │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
npm timing command:run-script Completed in 42175ms
npm verb exit 1
npm timing npm Completed in 42311ms
npm verb code 1
Reproduction steps
- npm init @shopify/app@latest
- npm run shopify app generate extension – --type product_discounts --name=product-discount
- npm run deploy
- npm run dev
Operating System
Mac OS Monterey 12.4
Shopify CLI version (check your project’s package.json
if you’re not sure)
@shopify/cli/3.46.1 darwin-x64 node-v20.2.0
Shell
iTerm2
Node version (run node -v
if you’re not sure)
v20.2.0
What language and version are you using in your application?
v20.2.0
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 2
- Comments: 15 (8 by maintainers)
I’m fixed it using ngrok instead cloudflared
ngrok http 3000
npm run dev -- --tunnel-url https://NGROK-URL:3000
For those facing issues with Cloudflare, an easier workaround is to run:
npm run dev -- --tunnel ngrok
Thanks for the update, I’ll try to reproduce.
You can possibly work around using the
--tunnel-url
flag ondev
. So usecloudflared
to start a tunnel (see here for instructions) and then pass in the URL.