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

Remote services missing from ipfs-core ? #3626

Closed
piskel opened this issue Apr 15, 2021 · 2 comments
Closed

Remote services missing from ipfs-core ? #3626

piskel opened this issue Apr 15, 2021 · 2 comments
Labels
need/triage Needs initial labeling and prioritization

Comments

@piskel
Copy link

piskel commented Apr 15, 2021

  • Version:
{
  version: '0.5.4',
  repo: 10,
  commit: '511147bedd51be3151de44a90fefe9425bfbcd50',
  'interface-ipfs-core': '^0.144.2'
}
  • Platform:
    Windows 10 Pro x64
    Version 20H2 (OS Build 19042.867)

  • Subsystem:
    PIN

Severity:

Medium

Description:

When trying to use any function under ipfs.pin.remote, it says remote does not exist. And looking inside the ipfs-core folder in node_modules, I can't find the remote folder, unlike with ipfs-http-client.

My apologies if it is a duplicate or if I misunderstood something in the docs.

Steps to reproduce the error:

Creating a simple project with Typescript and no other dependencies than ipfs-core, ts-node and typescript.

The following code was used:

import IPFS from 'ipfs-core'

async function test()
{
    const ipfs = await IPFS.create();

    await ipfs.pin.remote.service.add('pinata', {
        endpoint: new URL('https://api.pinata.cloud'),
        key: "test"
    });

    await ipfs.stop();
}

test();
@piskel piskel added the need/triage Needs initial labeling and prioritization label Apr 15, 2021
@welcome
Copy link

welcome bot commented Apr 15, 2021

Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review.
In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment.
Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:

  • "Priority" labels will show how urgent this is for the team.
  • "Status" labels will show if this is ready to be worked on, blocked, or in progress.
  • "Need" labels will indicate if additional input or analysis is required.

Finally, remember to use https://discuss.ipfs.io if you just need general support.

@achingbrain
Copy link
Member

This is not implemented in js-ipfs yet - it's being done in #3588

These methods exist in the http client because you can use it with go-ipfs which has implemented the remote pinning API.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
need/triage Needs initial labeling and prioritization
Projects
None yet
Development

No branches or pull requests

2 participants