Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

ipfs-http-client upload folder not work #3873

Closed
@ziboilihua

Description

@ziboilihua
  • Version:
    {
    version: '0.9.1',
    commit: 'dc2715a',
    repo: '11',
    system: 'amd64/linux',
    golang: 'go1.15.2'
    }

  • Platform:
    Darwin localhost 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64

Severity:

High

Description:

ipfs-http-client will throw this error when add Folder use globSource, I use it in nodejs project at local

AbortError: The user aborted a request.

Steps to reproduce the error:

const { create, globSource } = require('ipfs-http-client')

async function uploadFile() {
    const ipfs = create('http://localhost:15001');
    const file = await ipfs.add(globSource('./docs', { recursive: true }))
    console.log(JSON.stringify(file))
}

uploadFile();

Metadata

Metadata

Assignees

No one assigned

    Labels

    need/triageNeeds initial labeling and prioritization

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions