creek icon indicating copy to clipboard operation
creek copied to clipboard

No such file or directory @ rb_sysopen - /tmp/open-uri20220126-8-xdogjo

Open leom806 opened this issue 2 years ago • 1 comments

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:

image

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 avatar Jan 26 '22 03:01 leom806

@leom806 I had the same issue, try to unlink file after processing, for more details - https://www.hilman.io/blog/2016/01/tempfile/

stiig avatar Apr 28 '22 09:04 stiig