Read Timeout error using pollination-streamlit api client (python)

Hello Pollination Team,

I am encountering a relatively new error when trying to download results from our studies using the pollination-streamlit api client:

requests.exceptions.ReadTimeout: requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='storage.googleapis.com', port=443): Read timed out. (read timeout=10)

This has been happening since last week and the api calls work intermittently. Lately we have no been able to download any results using our python scripts though.

I was wondering if you have any insight on this? I’d be happy to provide more info if needed.

Thank you!
David

1 Like

Hi @dsoleil,

Sorry about that. @antoinedao will correct me but as far as I know, we haven’t made any changes on our end. I wonder if Google Cloud Storage has changed the default timeout. It would be great if you could provide a minimal sample code for us to be able to reproduce the issue on our end.

Hi @dsoleil, did you solve this problem or is it still an issue? Let me know if there’s anything that I can do to help.

Thank you @mostapha This has been resolved via our private messages but I’ll leave the solution here in case someone else encounters it.

In the code written to retrieve studies using the pollination api client, we use ThreadPoolExecutor to process the runs in parallel with a max_worker param set to 5. When this is reduced to 2 workers, we do not get the timeout error anymore.

1 Like