Comments (5)
(base) ➜ helia-101 git:(main) ✗ node --trace-warnings 201-storage.js
Added file: bafkreih7eug2oqxx7ft427q4fcce6lnl73q6kmtzaxeldllx266mxr6os4
Added file contents: Hello World 201
(node:2650145) MaxListenersExceededWarning: Possible EventTarget memory leak detected. 11 abort listeners added to [AbortSignal]. Use events.setMaxListeners() to increase limit
at [kNewListener] (node:internal/event_target:568:17)
at [kNewListener] (node:internal/abort_controller:241:24)
at EventTarget.addEventListener (node:internal/event_target:681:23)
at anySignal (file:///home/dentropy/Projects/IPFS-MFS-CAR-TEST/helia-101/node_modules/any-signal/dist/src/index.js:21:20)
at DialQueue.createDialAbortController (file:///home/dentropy/Projects/IPFS-MFS-CAR-TEST/helia-101/node_modules/libp2p/dist/src/connection-manager/dial-queue.js:200:24)
at queue.add.peerId.peerId [as fn] (file:///home/dentropy/Projects/IPFS-MFS-CAR-TEST/helia-101/node_modules/libp2p/dist/src/connection-manager/dial-queue.js:126:33)
at Job.run (file:///home/dentropy/Projects/IPFS-MFS-CAR-TEST/helia-101/node_modules/@libp2p/utils/dist/src/queue/job.js:56:50)
at Queue.tryToStartAnother (file:///home/dentropy/Projects/IPFS-MFS-CAR-TEST/helia-101/node_modules/@libp2p/utils/dist/src/queue/index.js:79:17)
at Queue.add (file:///home/dentropy/Projects/IPFS-MFS-CAR-TEST/helia-101/node_modules/@libp2p/utils/dist/src/queue/index.js:121:14)
at DialQueue.dial (file:///home/dentropy/Projects/IPFS-MFS-CAR-TEST/helia-101/node_modules/libp2p/dist/src/connection-manager/dial-queue.js:123:27)
(node:2650145) MaxListenersExceededWarning: Possible EventTarget memory leak detected. 11 abort listeners added to [AbortSignal]. Use events.setMaxListeners() to increase limit
at [kNewListener] (node:internal/event_target:568:17)
at [kNewListener] (node:internal/abort_controller:241:24)
at EventTarget.addEventListener (node:internal/event_target:681:23)
at anySignal (file:///home/dentropy/Projects/IPFS-MFS-CAR-TEST/helia-101/node_modules/any-signal/dist/src/index.js:21:20)
at DialQueue.createDialAbortController (file:///home/dentropy/Projects/IPFS-MFS-CAR-TEST/helia-101/node_modules/libp2p/dist/src/connection-manager/dial-queue.js:200:24)
at queue.add.peerId.peerId [as fn] (file:///home/dentropy/Projects/IPFS-MFS-CAR-TEST/helia-101/node_modules/libp2p/dist/src/connection-manager/dial-queue.js:126:33)
at Job.run (file:///home/dentropy/Projects/IPFS-MFS-CAR-TEST/helia-101/node_modules/@libp2p/utils/dist/src/queue/job.js:56:50)
at Queue.tryToStartAnother (file:///home/dentropy/Projects/IPFS-MFS-CAR-TEST/helia-101/node_modules/@libp2p/utils/dist/src/queue/index.js:79:17)
at Queue.add (file:///home/dentropy/Projects/IPFS-MFS-CAR-TEST/helia-101/node_modules/@libp2p/utils/dist/src/queue/index.js:121:14)
at DialQueue.dial (file:///home/dentropy/Projects/IPFS-MFS-CAR-TEST/helia-101/node_modules/libp2p/dist/src/connection-manager/dial-queue.js:123:27)
[1] 2650145 segmentation fault (core dumped) node --trace-warnings 201-storage.js
(base) ➜ helia-101 git:(main) ✗
from helia.
{
"name": "helia-101",
"version": "1.0.0",
"private": true,
"type": "module",
"description": "Getting started with Helia",
"license": "MIT",
"main": "index.js",
"scripts": {
"start": "node 101-basics.js",
"serve": "npm run start",
"test": "test-node-example test/*"
},
"dependencies": {
"@chainsafe/libp2p-noise": "^15.0.0",
"@chainsafe/libp2p-yamux": "^6.0.1",
"@helia/unixfs": "^3.0.0",
"@libp2p/bootstrap": "^10.0.12",
"@libp2p/identify": "^1.0.14",
"@libp2p/tcp": "^9.0.12",
"blockstore-core": "^4.1.0",
"datastore-core": "^9.1.1",
"helia": "^4.0.1",
"libp2p": "^1.2.0"
},
"devDependencies": {
"test-ipfs-example": "^1.0.0"
}
}
from helia.
(base) ➜ helia-101 git:(main) ✗ npm run test
> [email protected] test
> test-node-example test/*
add event unixfs:importer:progress:file:read { bytesRead: 15n, chunkSize: 15n, path: undefined }
add event blocks:put:providers:notify CID(bafkreife2klsil6kaxqhvmhgldpsvk5yutzm4i5bgjoq6fydefwtihnesa)
add event bitswap:network:provide CID(bafkreife2klsil6kaxqhvmhgldpsvk5yutzm4i5bgjoq6fydefwtihnesa)
add event blocks:put:blockstore:put CID(bafkreife2klsil6kaxqhvmhgldpsvk5yutzm4i5bgjoq6fydefwtihnesa)
add event unixfs:importer:progress:file:write {
bytesWritten: 15n,
cid: CID(bafkreife2klsil6kaxqhvmhgldpsvk5yutzm4i5bgjoq6fydefwtihnesa),
path: undefined
}
add event unixfs:importer:progress:file:layout {
cid: CID(bafkreife2klsil6kaxqhvmhgldpsvk5yutzm4i5bgjoq6fydefwtihnesa),
path: undefined
}
Added file: bafkreife2klsil6kaxqhvmhgldpsvk5yutzm4i5bgjoq6fydefwtihnesa
cat event blocks:get:blockstore:get CID(bafkreife2klsil6kaxqhvmhgldpsvk5yutzm4i5bgjoq6fydefwtihnesa)
cat event unixfs:exporter:progress:raw { bytesRead: 15n, totalBytes: 15n, fileSize: 15n }
Added file contents: Hello World 101
Added file: bafkreih7eug2oqxx7ft427q4fcce6lnl73q6kmtzaxeldllx266mxr6os4
Added file contents: Hello World 201
Added file: bafkreia7g3sdmf5f3s4uihaqyzzqb7mugg32yuqnm2q5b5jwtklh36ggkm
Fetched file contents: Hello World 301
(base) ➜ helia-101 git:(main) ✗
from helia.
I have the same issue as you, have you resolved this problem?
from helia.
Closing as this is a duplicate of ipfs-examples/helia-examples#294 - let's continue the conversation there.
from helia.
Related Issues (20)
- Helia v4.x.x release HOT 1
- Exporting a CAR with `@helia/car` of a `@helia/json` encoded CID throws an error HOT 3
- helia.blockstore.get hangs when getting non-existent block but blockstore.get (correctly) errors HOT 2
- @helia/* modules should throw readable errors if CIDs with mismatched codecs are passed
- Expose libp2p-style content/peer routing API?
- bug: race condition in @helia/ipns->dns resolvers->default should abort if signal is aborted
- IPNS records are validated twice when resolved
- Valid IPNS records fail to resolve HOT 1
- feat: export resolve method from @helia/unixfs HOT 1
- bug: @helia/ipns should allow dnslink paths. HOT 1
- version incompatability HOT 2
- bug: `IPNSRoutingEvents` is not exported
- Remove DHT and bootstrapping from browser defaults HOT 4
- feat: customizeable content type parsing in @helia/verified-fetch HOT 5
- Creating Helia in nextjs fails with "TypeError: Cannot assign to read only property 'Symbol(Symbol.toStringTag)' of object '#<Bootstrap>'" HOT 2
- Missing 'default' export in 'module node_modules/node-domexception/index.js' HOT 3
- feat: add eth resolvers to @helia/verified-fetch? HOT 1
- React-native support? HOT 3
- fix: `blocks:get:providers:get` should be `blocks:get:blockstore:get`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helia.