Skip to content

Timeouts cannot be added #115

@Neel-132

Description

@Neel-132

I am calling the Unstructured paid API via Unstructured client SDK in python. But there is no way for me to give timeouts. I already added the Retry Config, but adding timeouts is also necessary. How do I add timeouts?

Please assist

Activity

MthwRobinson

MthwRobinson commented on Jun 12, 2024

@MthwRobinson

Moving this over to the client SDK repo. The Unstructured SDK gives you access to the underlying requests session and you should be able to add timeouts using a workflow similar to this.

awalker4

awalker4 commented on Jun 13, 2024

@awalker4
Collaborator

Here's an example of modifying the underlying requests session to add a custom timeout. I realize this isn't an intuitive way to do this - I've added a feature request to do this with a simple parameter.

Neel-132

Neel-132 commented on Jun 14, 2024

@Neel-132
Author

Hey, I have tried this as well before posting this issue. The point is overwriting the HTTP Adapter does not work all the time. So, adding timeout as a parameter in the general function(in the unstructured client library) would be more appropriate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @MthwRobinson@awalker4@Neel-132

        Issue actions

          Timeouts cannot be added · Issue #115 · Unstructured-IO/unstructured-python-client