gdcc / pyDataverse

Python module for Dataverse Software (dataverse.org).
http://pydataverse.readthedocs.io/
MIT License
63 stars 41 forks source link

Set `timeout` to `None` to avoid timeout errors #188

Closed JR-1991 closed 1 month ago

JR-1991 commented 1 month ago

Overview

In issue #187, it was noted that the current implementation using httpx throws an exception when a timeout exceeds 5 seconds. This can be problematic when uploading bulk data to Dataverse, as server-side processing times can cause delays and trigger the exception. This pull request sets the timeout parameter to None, which is equivalent to an unlimited timeout. We may need to consider whether this approach is reasonable or if a specific time limit would be more appropriate.

TLDR

Tasks

Closes #187

JR-1991 commented 1 month ago

@pdurbin thanks! Will deliver the tests soon and then we can merge it