# Connection timed out

**URL:** <https://forum.ecmwf.int/t/connection-timed-out/14279>\
**Category:** AI Weather Quest\
**Created:** [23 October 2025 13:22 UTC](https://forum.ecmwf.int/t/connection-timed-out/14279 "2025-10-23T13:22:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![George\_Gousios](https://forum.ecmwf.int/letter_avatar_proxy/v4/letter/g/838e76/32.png) [@George\_Gousios](https://forum.ecmwf.int/u/George_Gousios)\
**Post date:** [23 October 2025 13:22 UTC](https://forum.ecmwf.int/t/connection-timed-out/14279/1 "2025-10-23T13:22:14Z")

</div>

Hello,

I am trying to submit today and i receive:

```bash
quintile_clim = retrieve_evaluation_data.retrieve_20yr_quintile_clim(init_date,‘tas’, CODE)

../AI_WQ_package/retrieve_evaluation_data.py", line 91, in retrieve_20yr_quintile_climsession.retrbinary(f"RETR {remote_path}“, f.write)

…/lib/python3.11/ftplib.py”, line 436, in retrbinarywith self.transfercmd(cmd, rest) as conn:

../ftplib.py", line 393, in transfercmdreturn self.ntransfercmd(cmd, rest)[0]

../ftplib.py", line 354, in ntransfercmdconn = socket.create_connection((host, port), self.timeout,

../socket.py", line 863, in create_connectionraise exceptions[0]

../socket.py", line 848, in create_connectionsock.connect(sa)

TimeoutError: [Errno 110] Connection timed out

```

---

<div class="post-metadata">

**Author:** ![George\_Gousios](https://forum.ecmwf.int/letter_avatar_proxy/v4/letter/g/838e76/32.png) [@George\_Gousios](https://forum.ecmwf.int/u/George_Gousios)\
**Post date:** [23 October 2025 19:50 UTC](https://forum.ecmwf.int/t/connection-timed-out/14279/2 "2025-10-23T19:50:14Z")

</div>

Its ok now! I submitted!

---

<div class="post-metadata">

**Author:** ![Joshua\_Talib](https://forum.ecmwf.int/user_avatar/forum.ecmwf.int/joshua_talib/32/987_2.png) [@Joshua\_Talib](https://forum.ecmwf.int/u/Joshua_Talib)\
**Post date:** [24 October 2025 07:37 UTC](https://forum.ecmwf.int/t/connection-timed-out/14279/3 "2025-10-24T07:37:53Z")

</div>

Hi @George_Gousios ,

Thanks for the message. I’m pleased to see that you were successful with your resubmission.

Unfortunately our FTP server can be slow at connecting when it is in demand. I recommend that you design code that reattempts connection until successful. Something like:

> while True:
> 
> ```
> try:
> 
> forecast_array = forecast_submission.AI_WQ_create_empty_dataarray(aiwq_var,chosen_date,wk_lt,teamname,modelname,password)
> 
> print("Success!")
> 
> break
> 
> except Exception as e:
> 
> print(f"Error: {e}. Retrying...")
> 
> time.sleep(5) # wait a bit before retrying
> 
> ```

Thanks,

Josh
