This repo contains a ~minimal reproduction of what seems to me like a bug: workers for platform workers can be dispatched to from a regular worker but not from a DO.
- upload the wfp worker
wrangler dispatch-namespace create wfp-do-bug
- set
account_id
andapi_token
inwfp/upload.sh
cd wfp && ./upload.sh
- upload the regular worker and DO:
cd ..
- set
account_id
inwrangler.toml
wrangler publish
- notice that we can call into the WfP worker from our worker:
curl <URL>/worker
shows:hello from the wpf worker!
- notice that we CANNOT call into the WfP worker from our DO:
curl <URL>/do
shows:wpf fetch from within the DO threw: internal error
Expected behavior: it does not throw and instead shows hellow from the wpf worker!