You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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.
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.
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.
Activity
MthwRobinson commentedon Jun 12, 2024
Moving this over to the client SDK repo. The Unstructured SDK gives you access to the underlying
requestssession and you should be able to add timeouts using a workflow similar to this.awalker4 commentedon Jun 13, 2024
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 commentedon Jun 14, 2024
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.