creek
creek copied to clipboard
No such file or directory @ rb_sysopen - /tmp/open-uri20220126-8-xdogjo
Hey guys.
I was getting this error here when trying to read a XLSX spreadsheet remotely with 5k+ rows.
No such file or directory @ rb_sysopen - /tmp/open-uri20220126-8-xdogjo
- Example error message
I'm not sure how that happens but I could fix it here by using your Creek::Book#download_file
method like this:
I'm basically downloading the file locally but what really did the change was to not call the path
method in the Tempfile.new
without an instance variable.
Looks like some Garbage Collection issue, not sure.
I thought that would help. Thanks for your great work.
@leom806 I had the same issue, try to unlink file after processing, for more details - https://www.hilman.io/blog/2016/01/tempfile/