# Lab 3 - ConnectTimeoutError

**URL:** <https://community.deeplearning.ai/t/lab-3-connecttimeouterror/797608>\
**Category:** Generative AI with Large Language Models\
**Tags:** ai-discussions\
**Created:** [April 8, 2025, 1:59pm UTC](https://community.deeplearning.ai/t/lab-3-connecttimeouterror/797608 "2025-04-08T13:59:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Falafel](https://avatars.discourse-cdn.com/v4/letter/f/34f0e0/32.png) [@Falafel](https://community.deeplearning.ai/u/Falafel)\
**Post date:** [April 8, 2025, 1:59pm UTC](https://community.deeplearning.ai/t/lab-3-connecttimeouterror/797608/1 "2025-04-08T13:59:43Z")

</div>

> **[Coursera | Online Courses & Credentials From Top Educators. Join for Free...](https://www.coursera.org/learn/generative-ai-with-llms/gradedLti/SKFfM/lab-3-fine-tune-flan-t5-with-reinforcement-learning-to-generate-more-positive)**
>
> Learn online and earn valuable credentials from top universities like Yale, Michigan, Stanford, and leading companies like Google and IBM. Join Coursera for free and transform your career with degrees, certificates, Specializations, & MOOCs in...

When i run this code block i get ConnectTimeoutError:  
 ![image](https://global.discourse-cdn.com/dlai/original/3X/5/1/512cb9c312a69aa4e616a7b35e4825f2d2d7f0b1.png)

 ![image](https://global.discourse-cdn.com/dlai/original/3X/4/6/46b2d5f02919a94748985267a3b2ca2026fda48d.png)

ConnectTimeout: (MaxRetryError(“HTTPSConnectionPool(host=‘[cas-bridge-direct.xethub.hf.co](http://cas-bridge-direct.xethub.hf.co)’, port=443): Max retries exceeded with url: /xet-bridge-us/62a3c4a7e2b7740fe29771af/613f0080c0e834e6fdea9236fc466866d55ffaf65264ebbda44828ea6da0ecf6?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=cas%2F20250408%2Fus-east-1%2Fs3%2Faws4\_request&X-Amz-Date=20250408T134548Z&X-Amz-Expires=3600&X-Amz-Signature=9b1a703bb8b739f32b71f8e3a2ddda66aa3368f191802b88386217264fcaaba9&X-Amz-SignedHeaders=host&X-Xet-Cas-Uid=public&response-content-disposition=inline%3B%20filename%2A%3DUTF-8%27%27model.safetensors%3B%20filename%3D%22model.safetensors%22%3B&x-id=GetObject (Caused by ConnectTimeoutError(\<urllib3.connection.HTTPSConnection object at 0x7f146a035110\>, ‘Connection to [cas-bridge-direct.xethub.hf.co](http://cas-bridge-direct.xethub.hf.co) timed out. (connect timeout=10)’))”), ‘(Request ID: ae166007-022b-4101-bf9f-c9857ed8450c)’)

---

<div class="post-metadata">

**Author:** ![gent.spah](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/gent.spah/32/136423_2.png) [@gent.spah](https://community.deeplearning.ai/u/gent.spah)\
**Post date:** [April 9, 2025, 7:29am UTC](https://community.deeplearning.ai/t/lab-3-connecttimeouterror/797608/2 "2025-04-09T07:29:44Z")

</div>

Perhaps retrying after sometime can make it work, it seems there is a connection error to a database, let us know if the error keeps persisting!

---

<div class="post-metadata">

**Author:** ![Falafel](https://avatars.discourse-cdn.com/v4/letter/f/34f0e0/32.png) [@Falafel](https://community.deeplearning.ai/u/Falafel)\
**Post date:** [April 11, 2025, 12:54pm UTC](https://community.deeplearning.ai/t/lab-3-connecttimeouterror/797608/3 "2025-04-11T12:54:27Z")

</div>

Yes, I just needed to wait. I tried again today and was able to connect to the database. Thanks!
