Worker Assets 500

I'm working on a local worker project and have a static assets directory. everything seems fine when actually deployed but when i run wrangler locally it can't find the assets. i was getting a 500, so i tried adding an explicit handler with env.ASSETS which changed to a 404. I tried adding the --local flag and double checked the file permissions were accessible. not sure what else to try
4 Replies
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Asher
AsherOP2mo ago
when i rely on the automatic asset binding/serving
Incorrect type for Promise: the Promise did not resolve to 'Response'
if i setup a route to handle it and explicitly call env.ASSETS.fetch(req) then i just get a 404
an
an4w ago
hi @Asher did you get this fixed?
Asher
AsherOP4w ago
nope still don't have any assets locally

Did you find this page helpful?