Main causes

  • Misconfigured server-side rewrite rules causing recursive redirection.

  • Poorly implemented WebDAV properties that create cyclic dependencies.

  • Errors in the client's request, particularly in the handling of "Depth: infinity", leading to unintended recursive operations.

  • Server-side scripts or configurations that inadvertently create infinite loops during data processing.

# Request example 
curl -X POST https://sandbox.oxylabs.io/ -H 'Accept: */*;q=0.8' -H 'Accept-Encoding: br' -H 'User-Agent: Mozilla/5.0'

Try Scraper API with 5K results

Common fixes

  • Check the HTTP version used in your request and compare it with the versions supported by the server.

  • Update your client or server software to ensure compatibility with the HTTP version used.

  • Modify the HTTP version in your request headers to match one that the server supports.

  • Contact the server administrator to confirm the supported HTTP versions and request an update if necessary.

# Response example 
HTTP/1.1 508 Loop Detected
Content-Type: text/html; charset=UTF-8
Content-Length: 49

508 Loop Detected

Forget HTTP errors with Scraper API

Web scraper API

Self-Service

Public data delivery from a majority of websites

From

49

Useful resources

How to Rotate Proxies in Python Using Requests and AIOHTTP
How to Rotate Proxies in Python Using Requests and AIOHTTP
roberta avatar

Roberta Aukstikalnyte

2024-11-06

Python Syntax Errors: Common Mistakes and How to Fix Them
Python Syntax Errors: Common Mistakes and How to Fix Them
vytenis kaubre avatar

Vytenis Kaubrė

2023-05-08

Most Common HTTP Headers
Vytautas Kirjazovas avatar

Vytautas Kirjazovas

2021-09-20

Get the latest news from data gathering world

I'm interested