Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set timeout to None to avoid timeout errors #188

Merged
merged 4 commits into from
May 17, 2024
Merged

Conversation

JR-1991
Copy link
Member

@JR-1991 JR-1991 commented May 16, 2024

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

  • Set timeout to None for no timeout

Tasks

  • Decide if unlimited or a certain time is appropriate
  • Add test to upload bulk data to verify functionality

Closes #187

@JR-1991 JR-1991 added the pkg:api api related activities label May 16, 2024
@JR-1991 JR-1991 self-assigned this May 16, 2024
@JR-1991 JR-1991 changed the title Set timout to None to avoid timeout errors Set timeout to None to avoid timeout errors May 16, 2024
@JR-1991 JR-1991 added this to the 0.3.3 milestone May 16, 2024
Copy link
Member

@pdurbin pdurbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this a draft PR but I'm already approving it. It fixes my problem. 😄

@JR-1991
Copy link
Member Author

JR-1991 commented May 16, 2024

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

@JR-1991 JR-1991 marked this pull request as ready for review May 17, 2024 08:18
@JR-1991 JR-1991 merged commit aa45d13 into master May 17, 2024
11 checks passed
@pdurbin pdurbin deleted the unlimited-timeout branch May 17, 2024 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg:api api related activities
Projects
Development

Successfully merging this pull request may close these issues.

when uploading many files: httpcore.ReadTimeout: timed out
2 participants