richburdon
richburdon
Explore posts from servers
CDCloudflare Developers
Created by richburdon on 7/26/2024 in #workers-help
migration
is there a way to inspect what the environment considers the state to be?
3 replies
CDCloudflare Developers
Created by richburdon on 7/26/2024 in #workers-help
migration
e.g., i'm getting errors like below on deploy:
✘ [ERROR] A request to the Cloudflare API (/accounts/950816f3f59b079880a1ae33fb0ec320/workers/scripts/hub-staging) failed.

Cannot apply new-class migration to class MailboxObject that is already depended on by existing
✘ [ERROR] A request to the Cloudflare API (/accounts/950816f3f59b079880a1ae33fb0ec320/workers/scripts/hub-staging) failed.

Cannot apply new-class migration to class MailboxObject that is already depended on by existing
3 replies
CDCloudflare Developers
Created by richburdon on 7/20/2024 in #workers-help
Wrangler redirect to OAuth login which then tries to redirect to localhost
but working on retries
6 replies
CDCloudflare Developers
Created by richburdon on 7/20/2024 in #workers-help
Wrangler redirect to OAuth login which then tries to redirect to localhost
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
6 replies
CDCloudflare Developers
Created by richburdon on 7/20/2024 in #workers-help
Wrangler redirect to OAuth login which then tries to redirect to localhost
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.
6 replies
CDCloudflare Developers
Created by richburdon on 7/20/2024 in #workers-help
Wrangler redirect to OAuth login which then tries to redirect to localhost
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'
}
}
6 replies
CDCloudflare Developers
Created by Prince on 5/20/2024 in #vitest-integration-beta
I ran into this issue too - `Error:
did you ever resolved this? i'm having the same issue.
4 replies
CDCloudflare Developers
Created by Abhaykd on 7/11/2024 in #workers-help
Unable to setup prisma accelerate with cloudflare workers
assuming that Pages project require the datasource url to be set -- what value would that be?
5 replies
CDCloudflare Developers
Created by Abhaykd on 7/11/2024 in #workers-help
Unable to setup prisma accelerate with cloudflare workers
hi @Cyb3r-Jok3 @Abhaykd did this work for you. I have been using Prisma in my worker project, but when I tried to access the DB using prisma from another pages worker i started to get this error. in the worker we're setting up the client like this: new PrismaClient({ adapter: new PrismaD1(c.env.DB) });
5 replies
CDCloudflare Developers
Created by richburdon on 6/2/2024 in #pages-help
wrangler pages deployment tail error
10 replies
CDCloudflare Developers
Created by richburdon on 6/2/2024 in #pages-help
wrangler pages deployment tail error
if i specify the deployment directly (by guessing what that is from the CF URL from the dashboard since I can't find that anywhere else). then it works.
10 replies
CDCloudflare Developers
Created by richburdon on 6/2/2024 in #pages-help
wrangler pages deployment tail error
wrangler pages deployment list --project-name=composer returns a list of deployments BUT only the first 25 -- which are all preview. I don't see a way to filter production. My guess is that wrangler pages deployment tail --project-name=composer --environment=production fails because it only grabs the first page.
10 replies
CDCloudflare Developers
Created by richburdon on 6/2/2024 in #pages-help
wrangler pages deployment tail error
still failing
10 replies
CDCloudflare Developers
Created by richburdon on 6/19/2024 in #workers-help
Uncaught Error: EvalError: Code generation from strings disallowed for this context
I resolved the issue (found Function('path', 'return import(path)')) but would still like to know if there's a better way to diagnose or find the error.
2 replies
CDCloudflare Developers
Created by richburdon on 6/2/2024 in #pages-help
wrangler pages deployment tail error
(separately, it would be great to have a general --json option for all wrangler commands to get jq parsable output (e.g., list of deployments)
10 replies
CDCloudflare Developers
Created by richburdon on 6/2/2024 in #pages-help
wrangler pages deployment tail error
the only thing that i can see different for the production env is that we have custom domains
10 replies