Cloudflare Developers

CD

Cloudflare Developers

Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news

Join

Once a DO is created, it does not move.

Once a DO is created, it does not move. I check where a DO is by fetching a /cdn-cgi/trace, then seeing the colo field

hello here. I have a weird behavior,

hello here. I have a weird behavior, sometimes, my worker that talks to a durable object, does not reach the durable object but the worker itself.
const response = await stub.fetch('https://durable-object/something')
return await handleResponse(response)
const response = await stub.fetch('https://durable-object/something')
return await handleResponse(response)
I could clearly debug that sometimes, the response that I get is not returned by the Durable Object but by the worker itself. Any clue?...

Just hit a problem where having Durable

Just hit a problem where having Durable Objects and Smart Placement on will make it so i can't make requests to my DO. Found many other reports of the same thing here, but there doesn't seem to be an official statament about it. Could we at least get this documented under known issues or limitations on the docs? It's really frustrating to spend hours trying to fix something that was already reported a long time ago but stays undocumented.

yea........ what a sad realization :

yea........ what a sad realization :salute_sob: DO ❌ CF Pages 😭...
No description

Hi guys has anyone managed to get

Hi guys has anyone managed to get durable objects running with next pages? First i get an error mentioning migrations. Then it requires a worker name which is usually auto generated. Any help would be awesome....

Apologies, I should have been more clear

Apologies, I should have been more clear. I have a scenario where a user establishes a WebSocket connection first, and then I need to authenticate that user. The flow I am considering is as follows: The client establishes a WebSocket connection with the server....

So I'm getting ready to publish

So I'm getting ready to publish IttyDurable (which extends DurableObject)... In order for test coverage to work (GH actions), I need to make sure the environment can see/accept DurableObject, which I currently read from cloudflare:workers, assuming a Wrangler setup. Any trick/tips on how to make sure that can be used in GH actions/test runners?...

Kevin Whitley (@kevinrwhitley) on X

Would love feedback from anyone/everyone on the upcoming itty-durable interface: https://x.com/kevinrwhitley/status/1800355908436083017...

Is there a way to bind multiple workers

Is there a way to bind multiple workers into a single DO? When I tried doing this by specifying the bindings in the seperate wrangler.toml and re-exporting the DO in both index.ts of the two workers, Cloudflare creates two seperate DO's with the worker name prefixed in front. I can see how this is expected behaivour, but is there any way I can bind multiple workers into the same DO?...

Limits · Cloudflare Workers docs

We're making connections to postgres from a Durable Object. Is there a limit to how many open TCP connections there can be in a DO? I see that the limit for Workers is 6 (https://developers.cloudflare.com/workers/platform/limits/#simultaneous-open-connections) but I haven't found any documentation for connection limits with respect to DOs....

Hello, I am trying to use Websocket

Hello, I am trying to use Websocket Server that built on Durable object for Minecraft, that connects web to Minecraft by using /connect command(known as /wsserver). The app that I created is fully working on Developing environment, however, it is not working on production deployment. Is there any differences of behaviour between development enviroment(by wrangler dev) and production? as a reference, this is code of it...

Hey guys, seeing this error when adding

Hey guys, seeing this error when adding a new durable object for the first time: Cannot apply new-class migration to class AtlasWebsocket that is already depended on by existing Durable Objects [code: 10074] I am adding this for the first time and I don't see it in use at all in console. This is what I have in the migration ...

since 2 days ago I'm getting a ton of

since 2 days ago I'm getting a ton of internal error and Network connection lost. errors when calling my durable objects. they don't have particularly high load and it happens to many different instances, not just one there's no useful error to help me fix it unfortunately...

WS debugging chat

Thats it for the error message but this is the web socket error event object: `Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 2, …} isTrusted : ...

Amazing, @Frederik — thanks for

Amazing, @Frederik — thanks for confirming it's an issue on your end, and we're looking forward to a fix! 🙏

FlareUtils Types Bug

/// <reference types="@cloudflare/workers-types" /> and ^ this works...

@bun - okay, things are working, though

@bun - okay, things are working, though I haven't properly tested all the expires stuff and whatnot... and again, I do plan to move all this into a full proof-of-concept repo with working demo etc. Anyway, some stuff in 🧵 ....

Hey all - I'm having quite a lot of

Hey all - I'm having quite a lot of trouble with WebSockets and Durable Objects in production. I believe I've narrowed the cause down to a KV put (not transactional storage). With it disabled, it seems to work decent enough, but with it enabled, it causes the websocket message processing to hang. It also seems to be getting worse over time. This is not the case when running locally.

In this case you could also use

In this case you could also use serializedAttachment on that particular WebSocket, assuming you haven't used up all the space with other stuff

closing old websocket server instances without errors

im trying to implement a ping pong logic combined with an ip rate limiter i created a Map() like so ```js // Retrieve or initialize ipInfo for this IP...