Xuanwo commented on issue #5882:
URL: https://github.com/apache/arrow-rs/issues/5882#issuecomment-2186051156

   > @Xuanwo I would love to be of more help but I don't now how to do this in 
delta-rs (an in turn object_store). I didn't help setting the timeout to 300s.
   
   Hi, if you can consistently reproduce this issue, please make the following 
changes:
   
   
https://github.com/delta-io/delta-rs/blob/d17ed97b5bda0cadbc0df959f8fb38e275570c87/python/src/error.rs#L41-L51
   
   ```shell
   fn object_store_to_py(err: ObjectStoreError) -> PyErr {
       match err {
           ObjectStoreError::NotFound { .. } => 
PyFileNotFoundError::new_err(err.to_string()),
           ObjectStoreError::Generic { source, .. }
               if source.to_string().contains("AWS_S3_ALLOW_UNSAFE_RENAME") =>
           {
               DeltaProtocolError::new_err(source.to_string())
           }
           _ => PyIOError::new_err(err.to_string()),
       }
   }
   ```
   
   Don't use `err.to_string()`, print it's debug message instead.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to