     [Answers](https://scrapfly.io/blog)   /  [python](https://scrapfly.io/blog/tag/python)   /  [How to fix Python requests ReadTimeout error?](https://scrapfly.io/blog/answers/python-requests-exception-readtimeout)   # How to fix Python requests ReadTimeout error?

 by [Bernardas Alisauskas](https://scrapfly.io/blog/author/bernardas) Dec 19, 2022 1 min read [\#python](https://scrapfly.io/blog/tag/python) [\#requests](https://scrapfly.io/blog/tag/requests) 

 [  ](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fpython-requests-exception-readtimeout "Share on LinkedIn")    

 

 

`ReadTimeout` error is seen when using Python [requests](https://pypi.org/project/requests/) module for web scraping with explicit `timeout` parameter:

python```python
import requests
response = requests.get("https://httpbin.dev/delay/2", timeout=1.5)  # 1.5 seconds
# will raise
# ReadTimeout: HTTPConnectionPool(host='httpbin.dev', port=80): Read timed out. (read timeout=2)
```



The `ReadTimeout` exception means that the request could not be completed in the given time frame. By default, the `requests` module has no timeout which can hang the whole program indefinitely so this value should always be set to 1-120 seconds depending on the target.

If you're encountering a lot of `ReadTimeout` exceptions your scraper might be being blocked by the website. For more on that see our guide [how to scrape without getting blocked](https://scrapfly.io/blog/posts/how-to-bypass-anti-bot-protection-when-web-scraping)

See related errors: [How to fix python requests ConnectTimeout error?](https://scrapfly.io/blog/answers/python-requests-exception-connecttimeout)



 

    



Scale Your Web Scraping

Anti-bot bypass, browser rendering, and rotating proxies, all in one API. Start with 1,000 free credits.

  No credit card required  1,000 free API credits  Anti-bot bypass included 

 [Start Free](https://scrapfly.io/register) [View Docs](https://scrapfly.io/docs/onboarding) 

 Not ready? Get our newsletter instead. 

 

## Explore this Article with AI

 [ ChatGPT ](https://chat.openai.com/?q=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fpython-requests-exception-readtimeout) [ Gemini ](https://www.google.com/search?udm=50&aep=11&q=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fpython-requests-exception-readtimeout) [ Grok ](https://x.com/i/grok?text=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fpython-requests-exception-readtimeout) [ Perplexity ](https://www.perplexity.ai/search/new?q=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fpython-requests-exception-readtimeout) [ Claude ](https://claude.ai/new?q=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fpython-requests-exception-readtimeout) 



 ## Related Articles

 [  

 http 

### What is HTTP 401 Error and How to Fix it

Discover the HTTP 401 error meaning, its causes, and solutions in this comprehensive guide. Learn how 401 unauthorized e...

 

 ](https://scrapfly.io/blog/posts/what-is-http-401-error-and-how-to-fix-it) [  

 http 

### What is HTTP 422 Error? (Unprocessable Entity)

422 Unprocessable Entity error is usually caused by a semantically invalid request. Learn http error 422 causes and how ...

 

 ](https://scrapfly.io/blog/posts/what-is-http-422-error-unprocessable-entity) [  

 http 

### Guide to Cloudflare's Error Code 520 and How to Fix it

Quick look at error code 520, what does it mean, its common causes, and how it can be prevented.

 

 ](https://scrapfly.io/blog/posts/guide-to-error-code-520-cloudflare-and-fixes) 

  ## Related Questions

- [ Q How to fix python requests ConnectTimeout error? ](https://scrapfly.io/blog/answers/python-requests-exception-connecttimeout)
- [ Q How to fix Python requests MissingSchema error? ](https://scrapfly.io/blog/answers/python-requests-exception-missingschema)
- [ Q How to fix Python requests SSLError? ](https://scrapfly.io/blog/answers/python-requests-exception-sllerror)
- [ Q How to block resources in Playwright and Python? ](https://scrapfly.io/blog/answers/how-to-block-resources-in-playwright)
 
  



   



 Scale your web scraping effortlessly, **1,000 free credits** [Start Free](https://scrapfly.io/register)