Questions tagged [ipfs-http-client]

47 questions
4
votes
4 answers

Module not found: Can't resolve 'ipfs-http-client' in 'D:\Pro\src\components'

I am trying to send files to ipfs using a website in node-js. I am using the ipfs-http-client module. When i try to access the module using require I keep getting this error : Module not found: Can't resolve 'ipfs-http-client' in…
Sneha
  • 41
  • 1
  • 2
3
votes
3 answers

Import ipfs in TypeScript

Importing and module initialization is generally simple using JavaScript/TypeScript using either require or import. I'm having trouble running the basic example from the JS IPFS website to initialize ipfs. If I follow the general instructions I get…
haleonj
  • 1,438
  • 3
  • 16
  • 30
2
votes
1 answer

Error uploading file: TypeError: source is not async iterable

Is there an issue with IPFS. nothing works I get this ERROR when running ipfs daemon 2022-11-05T01:21:38.715+0100 ERROR tcp-tpt tcp/tcp.go:59 failed set keepalive period {"error": "set tcp4 192.168.1.6:4001->34.211.25.159:41218:…
user9958772
  • 147
  • 2
  • 9
2
votes
2 answers

How can I upload a json file (or JavaScript Object) to IPFS in NextJS?

I am trying to upload the metadata(JavaScript Object) of a file already uploaded to IPFS, from the client side in the NextJS. I am able to upload files(PDFs) to IPFS using the Infura's HTTP API with the help of the ipfs-http-client package, but I am…
saditya
  • 93
  • 1
  • 10
2
votes
1 answer

Can't resolve module 'ipfs-http-client' in react-app

I have ran into trouble with ipfs-http-client in my React app. I'm using node 16.14.0 The error message is: When I Ctrl + Click on 'ipfs-http-client', it still drive me to the modules file. Solutions that I've tried, but not work: Restart…
2
votes
1 answer

Check if ipfs data exists

Using the ipfs-http-client I can successfully add data using the below method. The console.log(added) returns an object with the path, cid, and size keys. However, the console.log(exists) line returns Object [AsyncGenerator] {}. I would like to be…
SeanPlusPlus
  • 8,663
  • 18
  • 59
  • 84
1
vote
2 answers

Cannot connect to IPFS Error: no protocol with name: quic-v1

I installed ipfs in my mac as follows: docker run -d --name ipfs_host -v $ipfs_staging:/export -v $ipfs_data:/data/ipfs -p 4001:4001 -p 4001:4001/udp -p 127.0.0.1:8080:8080 -p 127.0.0.1:5001:5001 ipfs/kubo:latest Then in my nodejs app, I…
iPhoneJavaDev
  • 821
  • 5
  • 33
  • 78
1
vote
1 answer

Why IPFS Cluster nodes cannot find each other

I setup two instances for IPFS nodes. 1 IPFS for bootstrap node and 1 IPFS for client node. I already setup a private network for both IPFS nodes. I already bootstrap the 2 IPFS nodes and they can find and talk to each other. Like if I add a file in…
Test
  • 43
  • 4
1
vote
0 answers

Problem with infura.io gateway requiring auth posting to IPFS

Before Oct 2022, Infura.io allow users to post using its gateway as follows: No auth is required. My original code is as follows in ipfs.js file. const IPFS = require('ipfs-api'); const ipfs = new IPFS({host: 'ipfs.infura.io', port: 5001, protocol:…
Ecorpnu
  • 11
  • 1
1
vote
0 answers

IPFS returns 400 bad request when I try to pin a file through ipfs-http-

I have the latest 59.0.0 ipfs-http-client and I have tried with multiple versions but the same problem arises. I have set up infura project, I have the Project Id, API key... also I have set up authentication headers but when i go and add the…
umEr Ali
  • 31
  • 1
1
vote
1 answer

"Failed to fetch" error message in Infura

Steps Using "ipfs-http-client" npm library setting up auth with projectId, privateKey from infura import { create } from 'ipfs-http-client' const privateKey = '...' const projectId = '...' const auth = 'Basic ' + Buffer.from(projectId + ':' +…
0
votes
0 answers

IPFS: HTTPError: URL arg must be multibase encoded: selected encoding not supported

I want to create an OrbitDB database with a locally running IPFS daemon. My code is based on a code sample published in a past discussion, with a few changes. Here is my code (test.js): import * as IpfsClient from 'ipfs-http-client' import OrbitDB…
rapt
  • 11,810
  • 35
  • 103
  • 145
0
votes
0 answers

How to Add Data to IPFS through Smart Contract in Truffle?

I'm currently working on a project where I have to store Student's basic data using Blockchain. I managed to to do so, but now I want the data to get Stored on the IPFS instead of the Blockchain, and the generated hash value to get stored on the…
0
votes
1 answer

Module not found: Can't resolve 'ipfs-http-client' in '/home/ubuntu/chatapp/src/components'

I am trying to send files to ipfs. I am using the ipfs-http-client module. when I am trying to compile with this I keep getting this error : Module not found: Can't resolve 'ipfs-http-client' in '/home/ubuntu/chatapp/src/components' I installed the…
0
votes
0 answers

Infura client IPFS configuration, image upload, request error

I'm developing an NFT generator, an error is occurring when saving the image, by the infura ipfs. defined:1 GET https://ipfs.infura.io/ipfs/undefined 400 (Bad Request) Image let client = ipfsHttpClient() client = ipfsHttpClient (…
Wallace
  • 1
  • 1
1
2 3 4