FetchError Too many redirects.
👋 I'm doing very simple
fetch
api call but I'm always getting Too many redirects
exception in my worker code, I have tested that call through curl and it works perfectly but after deployment to worker enviroment it throws always that exception. Do anyone have some experience with such error?4 Replies
I have checked api origin request logs and it seems that request from Worker wouldn't get there at all 😢
uh, got it working finally - It was needed to switch SSL/TLS to Full mode

I didn't expected that
In your curl response, does it have a redirect?
Look for a status code of 301 or 302. Also look for a `location'.
curl will NOT follow redirects unless you give it the flag to do so.
so, curl will never encounter the "too many redirects" but your worker may.