You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
Platform: Linux lukas2005-local 4.18.18-200.fc28.x86_64 Add to cli: ipfs pin [-r] <ipfs-path> #1 SMP Mon Nov 12 03:17:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Subsystem: Graph (object.put)
Type: Bug
Severity: Medium
Description:
ipfs.object.put(new Buffer(data)) doesn't work when used in the browser (bundled with webpack)
Error:
ACCESS ERROR: Error: No resolver found for codec "undefined" ipfs-access-controller.js:33
at IPLDResolver.put (index.js:221)
at next (object.js:204)
at DAGNode.create (object.js:176)
at multihashing (create.js:53)
at Multihashing.Multihashing.digest (index.js:33)
at index.js:15
at ./node_modules/core-js/modules/_invoke.js.module.exports (_invoke.js:5)
at queue.(:8000/anonymous function) (http://localhost:8000/bundle.js:69449:7)
at Number.run (_task.js:21)
at MessagePort.listener (_task.js:25)
git clone https://github.com/Anchor-Chat/Anchor-Web.git
cd Anchor-Web
npm i
npm start
now open http://localhost:8000 in the web browser (i used the latest chrome)
now type in any password and login and click "register"
An error message should pop up in the UI but to get details see the developer console.
The text was updated successfully, but these errors were encountered:
@lukas2005 I've just tried ipfs.object.put(new Buffer('ddd')) using our webpack example https://github.com/ipfs/js-ipfs/tree/master/examples/browser-webpack and I'm not getting the error. I suspect this is an error in your application code or in the orbitdb code or possibly in the webpack config being used. Please re-open a new issue if you discover this to not be the case.
@alanshaw One thing i discovered (that's too small to make a complete new issue for) if i replace const r = this.resolvers[options.format](line 219) with const r = this.resolvers[options.format || options.cid.codec]
everything works fine
isn't options.format supposed to be optional?
ipfs pin [-r] <ipfs-path>
#1 SMP Mon Nov 12 03:17:32 UTC 2018 x86_64 x86_64 x86_64 GNU/LinuxType: Bug
Severity: Medium
Description:
ipfs.object.put(new Buffer(data))
doesn't work when used in the browser (bundled with webpack)Error:
ipfs-access-controller is a file from orbit-db
https://github.com/orbitdb/orbit-db/blob/master/src/ipfs-access-controller.js#L33
Steps to reproduce the error:
now open
http://localhost:8000
in the web browser (i used the latest chrome)now type in any password and login and click "register"
An error message should pop up in the UI but to get details see the developer console.
The text was updated successfully, but these errors were encountered: