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
Samko
SamkoOP•3y ago
I have checked api origin request logs and it seems that request from Worker wouldn't get there at all 😢
Samko
SamkoOP•3y ago
uh, got it working finally - It was needed to switch SSL/TLS to Full mode
No description
Samko
SamkoOP•3y ago
I didn't expected that
JustinNoel
JustinNoel•3y ago
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.

Did you find this page helpful?