eexist Error
Opened this issue · 0 comments
aruna470 commented
I got following error in heavy traffic environment. Reason is System.monotonic_time() time can be same for many requests.
%File.Error{action: "write to file", path: "C:\Users\ARUNAA~1\AppData\Local\Temp/execjs-64712370.js", reason: :eexist}
Issue resolved with following line
filename = "execjs-#{hash}-#{Integer.to_string(:rand.uniform(1000000))}.js"
Better if you can provide similar or any other solution with the library itself.