marko.333
Explore posts from serversCDCloudflare Developers
•Created by marko.333 on 12/6/2024 in #workers-help
Errors Crossing RPC boundaries?
I burned a number of hours today before i discovered surprising behavior when an Error subtype is thrown and then caught by an RPC caller. Here is the doc ...
https://developers.cloudflare.com/workers/runtime-apis/rpc/error-handling/
Example:
If Worker1 calls Worker2 (via RPC), and Worker2 throws FooError extends Error { constructor(public bar:string = "testing") }
... then Worker1 receives the FooError serialized to Error, essentially all Exceptions are converted to Error (with all specialized attributes stripped). The error.message is mostly retained, but that's it?
I have a whole family of exception that have specialized metadata that is all being stripped out?
Does anyone have any strategy/workaround suggestions to deal with this?
Maybe i need to trash exceptions and rely on "Error" return types to be passed across RPC boundaries? Thoughts?
Maybe i need to trash exceptions and rely on "Error" return types to be passed across RPC boundaries? Thoughts?
4 replies
CDCloudflare Developers
•Created by marko.333 on 9/8/2024 in #workers-help
Best practice for local development with multiple workers using RPC bindings?
Hello.
I'm having a hard time trying to test multiple Workers locally that collaborate using RPC bindings (and Queues, Durable Objects, etc...)?
Can i use wrangler, or do i need to use miniflare? Or am i forced to deploy remotely?
Is there any doc or good examples that detail how to accomplish this?
Thank you.
2 replies
CDCloudflare Developers
•Created by marko.333 on 9/7/2024 in #workers-help
Can an external http client make an RPC call to a Worker?
I would like to externally make RPC calls to Workers (mostly for testing) using something like Postman or curl.
I'm hoping some general gateway like this exists...
My current hack is to implement a wrapper Worker http endpoint for each RPC call. It works, but it at takes time, and it feels ugly/redundant?
Any suggestions? Thx.
3 replies
How do i deploy a Worker with a Pod?
I have deployed a worker with a Serverless deployment, now i expected to be able to deploy the exact same image to a Pod and be able to have an endpoint URL to make a similar Worker request, but i'm not having success?
I am currently using the following as the initial entrypoint for handler.py...
Is there any doc that discusses how to get a Serverless Worker deployed to a Pod?
thx.
16 replies
Should i able to launch a pod using nvidia/cuda docker images?
I am trying to start a pod using nvidia/cuda:12.6.0-cudnn-runtime-ubuntu24.04 (to get both cuda and cudnn).
I'm not an a docker expert, but should that work?
The pod appears to start, but the licensing message keeps looping in the logs, and i can't SSH into the pod?
Any ideas? thx.
5 replies