not that I know of, but you can fetch

not that I know of, but you can fetch https://cloudflare.com/cdn-cgi/trace from the DO to work out where it is and return early if in HKG
3 Replies
anirudh
anirudh3d ago
so say if we fail in the DO constructor, i'm guessing it will throw the error back to the worker? Then should the worker retry to create the stub again? i mean i can't not process this request...
Max (@rozenmd)
Max (@rozenmd)OP3d ago
(fwiw I don't work on DOs, I just use them a bit for my own projects) errors thrown from the DO come back to the Worker, when you recreate the stub I think you'd need to provide a different ID to the first request though, otherwise it'd just come back to the same instance each time
anirudh
anirudh3d ago
ok

Did you find this page helpful?