Skip to content
This repository was archived by the owner on Apr 16, 2019. It is now read-only.
This repository was archived by the owner on Apr 16, 2019. It is now read-only.

Empty File after ipfs.files.write call #1

@Kyrrui

Description

@Kyrrui

I'm using Infura's IPFS as a cache store. My caching script checks for new updates and writes the the mutable file system whenever a new update is found using ipfs.files.write. After about 5 days of this working successfully our cached file now shows up as empty, even when we write to it and the API call doesn't error.

ipfs.files.write('/' + IPFS_KEY + '/eventCache.json', Buffer.from(content), {create:true, truncate:true}, (err) => { if (!err) { console.log("Success!") console.log("Polling for new events...") isUpdatingIpfs = false; } })

data: refreshCache.js:2533 - New Create Events! data: refreshCache.js:2533 - Uploading to IPFS... data: refreshCache.js:2533 - Success! data: refreshCache.js:2533 - Polling for new events...

But the IPFS file is empty on read. The only solution I have right now is to start my cache back up at a different directory or to run my own IPFS server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions