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

I understand a worker will only be alive

I understand a worker will only be alive for 30 seconds or so. However, with a durable object, specifically if there is an alarm, how long will the do be alive for? For example, in an alarm I may potentially have to perform some operation that could take up to 10 minutes to resolve....

Hey everyone, trying to understand

Hey everyone, trying to understand hibernated websocket pricing with DOs. My idea was to process something for 10ms, send a message, and do nothing but once every second. I'm wondering if that means that I will get billed for every second, or if I take less than a second to do work, there is fractional billing? Example 4 seems to indicate so, but I wanted to confirm my understanding

Hi guys i create a new worker with

Hi guys i create a new worker with durable object but i got this {"status":500,"error":"Durable Object namespace binding cannot communicate with other nodes."} no idea how to fix i have paid plan

Build a WebSocket server with WebSocket ...

Hi everyone I can't get any error messages. I am trying to get my Durable Object working with Hono. My route ```javascript...

I have the weirdest situation going

I have the weirdest situation going right now... - I got a DO created inside a mini worker wrapper which is inside a larger Pages project (which sucks for DX, but I digress). - After noticing that none of the DO features were working locally for some reason, I went on the mini worker and deployed it with wrangler deploy to the correct account. - Even after deploying it, I'm (apparently?) still not able to use the DO... and the requests are 0, despite the bindings being successful (in dev.). - After this frustration, I decided to deploy to a preview environment, but because we are forced to use the build system version 1 (which doesn't support wrangler.toml), I knew I had to manually bind the DO on the dashboard....

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?...

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...