-
Notifications
You must be signed in to change notification settings - Fork 742
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🚀 Feature Request:RPC Support for Durable Objects in wrangler dev
#5918
Comments
Can you try extending the DurableObject class in your code, which may resolve this problem. JS RPC entry points must derive from either |
Extending workers-sdk/fixtures/entrypoints-rpc-tests/tests/entrypoints.spec.ts Lines 513 to 593 in 26855f3
|
OK thanks for the clarification. I wasn't sure if it had been fixed already. I'll add it to the backlog. |
I can also confirm this... been struggling for over a week now, causing project delays because of this... |
Hey folks just chiming in with more support for this! I'm already using cross-worker RPC calls in dev, was surprised to see it didn't work on Durable Objects! Everything else is very lovely to work with, this would be the cherry on top! |
Hey @alexturpin! Any updates or ETA for that feature? |
@LilaRest sorry for the confusion, I'm not a Cloudflare employee, was just saying I would also find this very useful! |
@alexturpin My bad, I'm quite tired and realize that I've sent the message in the wrong ticket mentioning the wrong person ^^ Thanks anyway for taking time to answer. |
Any update guys ? this is bad DX :( |
Currently, I have to deploy the worker (fast) and my next-on-pages project (slow) to test the even very small changes as long as the change has anything to do with the connection of these two and it slows the development process by an order of magnitude. If this is going to be like this for a long time, I need to do something about it, so it would be nice if someone could provide an ETA. A workaround would be also appreciated. If there is a hidden experimental implementation, etc., please let us know. Dealing with an unstable solution would be preferred than waiting 3-4 minutes to test a small iteration. |
+1 |
Hello! Could you share an update on this please? :) |
A workaround is to use .fetch() on the durable object instead of rpc. |
Describe the solution
When binding a durable object using RPC that was defined in a different worker, it fails with:
This is really useful when using durable objects in combination with
wrangler pages dev
since, as far as I understand, you cannot deploy a worker from a Pages project.The text was updated successfully, but these errors were encountered: