3 Replies
richburdon
richburdonOP5mo ago
the full error from wrangler:
Attempting to login via OAuth...
Opening a link in your default browser: https://dash.cloudflare.com/oauth2/auth?response_type=code&client_id=54d11594-84e4-41aa-b438-e81b8fa78ee7&redirect_uri=http%3A%2F%2Flocalhost%3A8976%2Foauth%2Fcallback&scope=account%3Aread%20user%3Aread%20workers%3Awrite%20workers_kv%3Awrite%20workers_routes%3Awrite%20workers_scripts%3Awrite%20workers_tail%3Aread%20d1%3Awrite%20pages%3Awrite%20zone%3Aread%20ssl_certs%3Awrite%20constellation%3Awrite%20ai%3Awrite%20queues%3Awrite%20offline_access&state=g2Xmw8WDRDYfjEi-3-I6QoswkqnCXQBw&code_challenge=kU0wFgVwClY4sbiFHcoR2AtX0tEZ2_NuCYsK5nyts2Q&code_challenge_method=S256
/Users/burdon/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/wrangler/wrangler-dist/cli.js:29765
throw a;
^

TypeError: fetch failed
at fetch (/Users/burdon/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/wrangler/wrangler-dist/cli.js:17227:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async fetchAuthToken (/Users/burdon/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/wrangler/wrangler-dist/cli.js:155354:10)
at async exchangeAuthCodeForAccessToken (/Users/burdon/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/wrangler/wrangler-dist/cli.js:154993:20)
at async Server.<anonymous> (/Users/burdon/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/wrangler/wrangler-dist/cli.js:155163:30) {
cause: ConnectTimeoutError: Connect Timeout Error
at onConnectTimeout (/Users/burdon/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/wrangler/wrangler-dist/cli.js:6049:29)
at /Users/burdon/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/wrangler/wrangler-dist/cli.js:6005:51
at Immediate._onImmediate (/Users/burdon/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/wrangler/wrangler-dist/cli.js:6037:13)
at process.processImmediate (node:internal/timers:476:21) {
code: 'UND_ERR_CONNECT_TIMEOUT'
}
}
Attempting to login via OAuth...
Opening a link in your default browser: https://dash.cloudflare.com/oauth2/auth?response_type=code&client_id=54d11594-84e4-41aa-b438-e81b8fa78ee7&redirect_uri=http%3A%2F%2Flocalhost%3A8976%2Foauth%2Fcallback&scope=account%3Aread%20user%3Aread%20workers%3Awrite%20workers_kv%3Awrite%20workers_routes%3Awrite%20workers_scripts%3Awrite%20workers_tail%3Aread%20d1%3Awrite%20pages%3Awrite%20zone%3Aread%20ssl_certs%3Awrite%20constellation%3Awrite%20ai%3Awrite%20queues%3Awrite%20offline_access&state=g2Xmw8WDRDYfjEi-3-I6QoswkqnCXQBw&code_challenge=kU0wFgVwClY4sbiFHcoR2AtX0tEZ2_NuCYsK5nyts2Q&code_challenge_method=S256
/Users/burdon/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/wrangler/wrangler-dist/cli.js:29765
throw a;
^

TypeError: fetch failed
at fetch (/Users/burdon/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/wrangler/wrangler-dist/cli.js:17227:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async fetchAuthToken (/Users/burdon/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/wrangler/wrangler-dist/cli.js:155354:10)
at async exchangeAuthCodeForAccessToken (/Users/burdon/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/wrangler/wrangler-dist/cli.js:154993:20)
at async Server.<anonymous> (/Users/burdon/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/wrangler/wrangler-dist/cli.js:155163:30) {
cause: ConnectTimeoutError: Connect Timeout Error
at onConnectTimeout (/Users/burdon/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/wrangler/wrangler-dist/cli.js:6049:29)
at /Users/burdon/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/wrangler/wrangler-dist/cli.js:6005:51
at Immediate._onImmediate (/Users/burdon/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/wrangler/wrangler-dist/cli.js:6037:13)
at process.processImmediate (node:internal/timers:476:21) {
code: 'UND_ERR_CONNECT_TIMEOUT'
}
}
Hello, I’m Allie!
The redirect is normal, though the fetch failure is not. Does it error the same way if you retry it?
richburdon
richburdonOP4mo ago
i was consistently failing for about half an hour and i went on to work on something else. when i came back to this it was working again. i've seen errors with wrangler like this in the past. e.g., today i've been seeing this a lot
✘ [ERROR] A request to the Cloudflare API (/accounts/950816f3f59b079880a1ae33fb0ec320/workers/scripts/hub-production/tails) failed.

workers.api.error.unknown [code: 10013]

If you think this is a bug, please open an issue at:
https://github.com/cloudflare/workers-sdk/issues/new/choose
✘ [ERROR] A request to the Cloudflare API (/accounts/950816f3f59b079880a1ae33fb0ec320/workers/scripts/hub-production/tails) failed.

workers.api.error.unknown [code: 10013]

If you think this is a bug, please open an issue at:
https://github.com/cloudflare/workers-sdk/issues/new/choose
but working on retries
Want results from more Discord servers?
Add your server