Fetch cannot load MY_PATH
I'm currently stuck with this error cross all integration tests:
I'm using SELF
couldn't find anything via googling, has anyone encountered this too?
6 Replies
What does your vitest.config.ts look like?
Is
<MY_PATH>
just a pathname or is it a full URL? You'll need to pass full URLs with protocols to SELF.fetch()
. The protocol/host is ignored, but the value must be a valid URL.oh I just replaced it, it prints the correct paths
as example
ok let me try full urls
this used to work with unstable_dev, so I thought it would work here too
Yep, you'll need to make sure you're passing a full URL, something like
https://placeholder/v1/apis/...
Here, SELF
is a service binding, which requires full URLsgotcha, that seems to work
on to the next error 😅