I have created multiple DO, and it still doesn't show in Durable Objects in the Dashboard. I binded

I have created multiple DO, and it still doesn't show in Durable Objects in the Dashboard. I binded them with Worker but worker throws error the DO doesn't exists. I assume it's cloudflare issue
18 Replies
George Clasher
George ClasherOP3w ago
I can see them in the Binding, so it' seems to be an cloudflare issue @John Spurlock
Chaika
Chaika3w ago
?pings
SuperHelpflare
Please do not ping community members for non-moderation reasons. Doing so will not solve your issue faster and will make people less likely to want to help you.
George Clasher
George ClasherOP3w ago
Sorry but... You know the answer? I created the DOs using official API
Chaika
Chaika3w ago
You'd have to describe a bit more, how exactly you have your config setup/exact error/etc. Lots of issues like this is because wrangler dev is entirely local/doesn't touch remote resources at all
George Clasher
George ClasherOP3w ago
I didn't use Wrangler curl -X POST \ "https://api.cloudflare.com/client/v4/accounts/a_ID_/workers/durable_objects/namespaces" \ -H "Authorization: Bearer TOKEN" \ -H "Content-Type: application/json" \ --data '{"name":"TG_AI_MSG_DO","class_name":"TG_AI_MSG_DO"}' I used it I didn't call it, but like it, I removed account id and token for safety It showed me succes true
Chaika
Chaika3w ago
Durable Objects are more then just namespaces, they have code/a worker and such attached to them. That's not a documented endpoint, I'm not sure there's any docs for creating Durable Objects purely from the API, I'd just push you to use Wrangler
George Clasher
George ClasherOP3w ago
I can see the DOs and can add through bindings but worker throws error: no script assigned to implement Durable Object namespace There is, ChatGPT showed me how, and it showed succes true
Chaika
Chaika3w ago
yea that's why you don't use AI too much, espec with stuff like this which isn't super common. There's a nice guide for getting started with Durable Objects here: https://developers.cloudflare.com/durable-objects/get-started/
Cloudflare Docs
Getting started
This guide will instruct you through:
George Clasher
George ClasherOP3w ago
{ "result": { "id": "...", "name": "TG_AI_MSG_DO", "script": "", "use_sqlite": false }, "success": true, "errors": [], "messages": [] I received this message I don't prefer wrangler that's why Well why would cloudflare mention the API works and also sent success?
Chaika
Chaika3w ago
You made a namespace, but you need to attach it to a script and do a few other things. The only supported way of creating Durable Objects is through Wrangler. The API you're messing with is undocumented/can change at any time without warning. You could try looking through the way wrangler modifies it, but you're setting yourself up for a very bad first experience/going far off the the intended path
George Clasher
George ClasherOP3w ago
What about workflows? I can use the API or no?
Chaika
Chaika3w ago
There is better api docs for it: https://developers.cloudflare.com/api/resources/workflows/methods/list/, but uploading a worker with the special entrypoint for it and such might be meh, I haven't tried that before myself, you'll have to deal with attaching binding at least. If you're just trying to take the easy way, it's very much worth just taking the 10-15 mins of setting up a proper env and getting used to wrangler
George Clasher
George ClasherOP3w ago
I have one question about worker, can I ask here
Chaika
Chaika3w ago
Sure
George Clasher
George ClasherOP3w ago
Is there any DDoS protection/rate limit on worker urls or they are wide open and can cause huge payment I didn't find any settings to put rate limit on worker urls, only routes can be rate limited
Chaika
Chaika3w ago
They have Cloudflare's default/generic ddos protection, no control over it though. The recommended path for that is to attach to a Custom domain (or a route, as you say) and use the free rate limiting and then you have more control over ddos settings, and you can disable the workers.dev so people can't bypass
George Clasher
George ClasherOP3w ago
Ok thank you :like:

Did you find this page helpful?