Questions tagged [ipfs-http-client]
47 questions
0
votes
0 answers
How to solve this CORS error where I am trying to push files to IPFS using infura
I am getting these two cors errors:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://ipfs.infura.io:5001/api/v0/add?stream-channels=true&progress=false. (Reason: CORS request external redirect not…

Zuber
- 1
- 1
0
votes
0 answers
How to completely free disk memory after removing unpinned IPFS blocks?
I have installed IPFS Kubo on WSL2 Ubuntu 20.04 and I was using IPFS through Python with the ipfshttpclient library, adding data through the client.add() command.
I have accumulated over 40 gigabytes of blocks data so I decide to remove it firstly…

imbo
- 1
- 1
0
votes
1 answer
ipfs-http-client cat sometimes return incomplete file
I use ipfs-http-client to upload and retrieve my file. The following creates the client and uploads an image in base64 string:
import { create } from "ipfs-http-client";
let client = create("/ip4/127.0.0.1/tcp/5001");
let file = await…

iPhoneJavaDev
- 821
- 5
- 33
- 78
0
votes
0 answers
Access to XMLHttpRequest has been blocked by CORS policy:
I am getting this Browser Error:
Access to XMLHttpRequest at 'https://infura-ipfs.io/ipfs/Qmdet.....pE1A' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested…

snicky
- 1
0
votes
0 answers
while trying to upload resources at ipfs-infura, i am getting this error- Error uploading file: HTTPError: project id required
I am creating a solidity based Dapp for nft marketplace. so i have to link my smart contracts with ipfs in order to upload resources as tokens. but everytime i try to upload i am getting this error:…

KUNAL SRIVASTAV
- 1
- 1
0
votes
0 answers
How to pin (store) files in ipfs using node js?
i want to store files of type image in ipfs with node js without using any gateway like pinata , i have tried to install "ipfs-http-client" and "ipfs-core" but i always get an error Module not found for these two libraries . I've installed many…

Ghost
- 318
- 2
- 8
0
votes
1 answer
how to get CID of file when creating using ipfs.files.write using ipfs-http-client
first I created directory using ipfs.files.mkdir it works fine but doesn't return folder CID or any other information, then I created file to that directory using below code
fs.readFile(temFilePath, async (err1, data) => {
if (err1) throw…

Mubashir Farooq
- 41
- 7
0
votes
1 answer
Error when I try to add ipfs file with my nodejs Dapp
I am trying to create a Dapp with nodejs that allow me to upload a file to IPFS running in local, but I'm haveing some troubles.
I've tried the next
submit_change: document.getElementById('upload_form').addEventListener('submit', async…

P00
- 11
- 4
0
votes
1 answer
Using ts-node with ESM module: ipfs-http-client
I am trying to run some tests on files I created which use ipfs-http-client.
I write code with typescript and I am using ts-node to run files without actually doing the build (when i do tests). I am running this code in a commonJs folder. As ipfs…

Giacomo Gagliano
- 92
- 9
0
votes
1 answer
getting error : HTTPerror: basic auth header is Invalid ,when sending files to ipfs
const projectId = process.env.PROJECTKEY
const projectSecret =process.env.SECRETKEY
const auth = 'Basic' + Buffer.from(projectId + ":" + projectSecret).toString('base64')
const client = IPFSHTTPClient({
host:'infura-ipfs.io',
port:5001,
…

Aditya Kondhare
- 3
- 1
0
votes
1 answer
IPFS error 403 forbidden error is coming whenever I try to post anything to the network. Should I change the network in my metamask?
I have started to make a project now I want to use ipfs-http-client.
I made a project on infura and got my project id and project secret key.
added into my js file like:
I imported using
import { create as ipfsHttpClient } from…
0
votes
0 answers
IPFS.add () is not working How do i resolve it
image of Error in ipfs await click here
Image of code for ipfs click here
What should i try now because ipfs.files.add is also not working

Saira Rao
- 1
- 2
0
votes
1 answer
What is the right way to locally copy pinned data in ipfs and what is the use of datastore folder?
I figured out pinned data is cached in blocks folder. Can I just get away with copying the files I need in blocks folder to backup? Is datastore folder generated automatically by ipfs daemon?
I tried copying only the blocks folder to another ipfs…

da-nav
- 31
- 3
0
votes
0 answers
uploading image to IPFS can't obtain path form response
I am using ipfs-http-client to upload an image but the response sends the hash twice instead of name/path like indicated in docs.
https://gyazo.com/5be735de8194f8511d71e98982240e03
const auth =
"Basic " + Buffer.from(projectId + ":" +…
0
votes
1 answer
infura HTTP method GET not allowed
enter image description here
enter image description here
above two errors show the detail.
/* create-item.js */
import { useState } from 'react'
import { ethers } from 'ethers'
import { create as ipfsHttpClient } from 'ipfs-http-client'
import {…

Kota
- 1
- 2