Open Rojuinex opened 13 hours ago
The requests in scarf_analytics have no timeout set, which can cause an application using the unstructured client to hang.
scarf_analytics
unstructured
https://github.com/Unstructured-IO/unstructured/blob/3b9b01c502cf5f319fd8bb2427232af96af5c637/unstructured/utils.py#L281C1-L309C18
Right now the only work around is to set SCARF_NO_ANALYTICS or DO_NOT_TRACK, but that opts out of analytics completely. A better approach is to set the timeout parameter to a reasonable value to avoid deadlocking the application.
SCARF_NO_ANALYTICS
DO_NOT_TRACK
timeout
The requests in
scarf_analytics
have no timeout set, which can cause an application using theunstructured
client to hang.https://github.com/Unstructured-IO/unstructured/blob/3b9b01c502cf5f319fd8bb2427232af96af5c637/unstructured/utils.py#L281C1-L309C18
Right now the only work around is to set
SCARF_NO_ANALYTICS
orDO_NOT_TRACK
, but that opts out of analytics completely. A better approach is to set thetimeout
parameter to a reasonable value to avoid deadlocking the application.