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

Error: No resolver found for codec "undefined" in the browser #1738

@m00nwtchr

Description

@m00nwtchr
  • Version: 0.33.1
  • 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)

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:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions