Hi, I am been confused by using fetch in the worker. I try to use
const response = await fetch(REQUEST_URL)
inside an async function but it’s not working as desired.
I also tried to do
console.log("fetching") const response = await fetch(REQUEST_URL) console.log("got fetch");
and log never gets to the “got fetch” part while the worker already returns ok to me. I got the same code works in playground perfectly, but worker never fetches the URL. Also, the requested URL is an “http://” one.
Is there any unknown limitations to worker when fetching URL?