richburdon
Explore posts from serversCDCloudflare Developers
•Created by richburdon on 10/23/2024 in #workers-help
API and limits for email routing?
Is there an API to create email routes for workers? If so are there limits to how many routes can be created (e.g., is it appropriate to create a route for each user of a particular application services? i.e., many thousands?) If not, is there another way to achieve this with the CF platform? Thanks.
2 replies
CDCloudflare Developers
•Created by richburdon on 7/27/2024 in #workers-help
prisma migrations fail if there are multiple databases
running migrations throws an error if there are multiple databases.
i figured out by trial and error that useing --from-url and guessing one of the sql files in .wrangler/state/d1 works, but is there a better way to determine which file to use?
1 replies
CDCloudflare Developers
•Created by richburdon on 7/26/2024 in #workers-help
migration
My staging and production environments got out of sync and so the
[[migrations]]
(various new_classes and renamed_classes) don't match. is there a way to just "start again" with respect to declaring DOs? i.e., start all environments back to v1 (or any tag really).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
Today, out of nowhere, when i run something like
wrangler d1 list
it opens the OAuth login page (https://dash.cloudflare.com/login?login_challenge=feabbb4e302c4204a50bbfdef7624292) which then redirects to https://dash.cloudflare.com/oauth/consent-form?consent_challenge=a942e5f5517b42c9ac4b98012753519a, and once I accept (which i've done many time in the past), it redirects to localhost (below).
http://localhost:8976/oauth/callback?code=03iCZmOxfZNXNPi50KyeaiGZQFS7-ZbVOsI7iV3PA58.7Zwut3uaNZTYF_e2Kdt--oJM2ZRpol4LUwe0GJeU3cE&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=m_e1_y1h9_F8prHyVG1CK4tEReOH7pdH6 replies
CDCloudflare Developers
•Created by richburdon on 7/14/2024 in #workers-help
Workers timing out
Deploy timing out. Also reporting issue timinig. out.
Does CF have a status page for all devlopment services?
3 replies
CDCloudflare Developers
•Created by richburdon on 7/14/2024 in #workers-help
Configuring cors during development
In development I'm serving a JS app from a pages project and a local dev worker. since these are on different ports there's a XSS issue. I've configured CORS and can make the appropriate requests, but I can't access cookies returned from the worker in the JS frontend. I'm trying to establish a session cookie that is passed between subsequent POST requests from the frontend.
1 replies
CDCloudflare Developers
•Created by richburdon on 7/13/2024 in #workers-help
Remove/ignore lib.dom.d.ts
I've included the CF type definitions and have NOT explicitely included the DOM lib, but some other lib must be including it and subsequently the DOM types overrides (like Response.webSocket) are hidden and these references are showing up as errors.
My tsconfig looks like this:
1 replies
CDCloudflare Developers
•Created by richburdon on 6/19/2024 in #workers-help
Uncaught Error: EvalError: Code generation from strings disallowed for this context
Out of the blue I started getting this error in miniflare (local dev). None of my code is calling
eval
and so far I can't find anything in my deps.
In general can anyone suggest how to debug workers that fail to startup.
2 replies
CDCloudflare Developers
•Created by richburdon on 6/2/2024 in #pages-help
wrangler pages deployment tail error
✘ [ERROR] No deployments for environment: production
the following command fails
wrangler pages deployment tail --project-name=composer --environment=production
unless i specifcially give the --deployment
10 replies
CDCloudflare Developers
•Created by richburdon on 5/15/2024 in #workers-help
Parsing email
I've tried to use a couple of popular email parsing libraries (textract, mailparser) to parse the raw text received by an email worker, but so far I haven't found anything compatible with the CF runtime environment.
For example, I get errors like below during deploy. Missing pacakges incude node:buffer, node:stream, crypto, path, etc.
3 replies
CDCloudflare Developers
•Created by richburdon on 5/14/2024 in #pages-help
How to change and manage subdomains?
I have a Pages "app/project" with custom domains. I can't see how to change the assigned subdomain associated with the Page (e.g., foo.pages.dev).
17 replies
CDCloudflare Developers
•Created by richburdon on 5/4/2024 in #workers-help
How to get the name of a durable object
I'm creating durable objects via
this.env.SWARM.get(this.env.SWARM.idFromName(HEX_STRING))
But when i call this.ctx.id.name
inside the object it is undefined.
Is there a way to get name -- or associate other state with the object during its construction/instantiation?8 replies
CDCloudflare Developers
•Created by richburdon on 5/3/2024 in #pages-help
env.ASSETS.fetch doesn't return additional headers
I have a Pages project with a worker (advanced config) that attempts to add a cookie via adding headers to the env.ASSETS.fetch call
the headers are not returned.
to sanity check if i return the following ther are:
to workaround i could either redirect (with the cookies), but what i'm attempting above seems reasonable so i wonder if there's an API bug?
34 replies
CDCloudflare Developers
•Created by richburdon on 4/29/2024 in #general-help
I don't see how to initiate a domain transfer into CF
I have an auth code from the current registrar -- what do i do with that?
25 replies
CDCloudflare Developers
•Created by richburdon on 4/27/2024 in #pages-help
Error while building Pages Functions from monorepo (nx): Could not resolve
I have a monorepo that contains a Pages project and a library that the Pages _worker.js function depends on.
During the CF build I get the following error (which works fine locally).
I suspect this might be related to the module being part of a monorepo?
9 replies
CDCloudflare Developers
•Created by richburdon on 4/24/2024 in #general-help
I upgraded to business but I still am not able to access support.
My workers started failing; I upgraded to business but I still am not able to access support.
35 replies