You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
We tried deleting the file every time this happened (note it always happens on the same file), which did not help. However, if we set the truncate flag to true when we do the initial write the problem disappears. This would take the issue from HIGH to MEDIUM since there is a simple workaround. However, I would not want to get surprised by this in production code. So, either a core fix or some documentation guidance would be useful to others.
Version:
{ version: '0.47.0', repo: 7, commit: '' }
Platform:
Linux newscart 4.19.0-9-amd64 Add to cli:
ipfs pin [-r] <ipfs-path>
#1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64 GNU/LinuxSubsystem:
files
Severity:
One of following: HIGH
Description:
Read it just a few seconds later and got this, note the repeat of characters at the end, which is corrupt JSON:
Expected to read back the same string written. Note, we are writing strings not buffers, they are generated with JSON.stringify.
If we run the exact same code with Node fs calls instead of IPFS calls, things work ok.
Steps to reproduce the error:
This does not demonstrate the problem, but it is the wrapper that makes IPFS look like FS for our purposes:
The text was updated successfully, but these errors were encountered: