Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3box identities example error #831

Open
tatecarson opened this issue Jan 13, 2021 · 0 comments
Open

3box identities example error #831

tatecarson opened this issue Jan 13, 2021 · 0 comments

Comments

@tatecarson
Copy link

I am trying to use the 3box identities example but I'm getting an error during login with metamask. I haven't changed the project at all, just trying to get it to run once.

equals.js:15 Uncaught (in promise) TypeError: Cannot read property 'byteLength' of undefined
    at equals (equals.js:15)
    at ClassIsWrapper.equals (index.js:374)
    at multiaddr-set.js:66
    at Array.some (<anonymous>)
    at MultiaddrSet.has (multiaddr-set.js:66)
    at index.js:130
    at Array.filter (<anonymous>)
    at PeerStore.update (index.js:130)
    at PeerStore.put (index.js:59)
    at Libp2p.dialProtocol (index.js:295)
    at Libp2p.dial (index.js:276)
    at connect (connect.js:7)
    at Object.connect (utils.js:180)
    at new Replicator (replicator.js:92)
    at _callee19$ (replicator.js:1153)
    at tryCatch (runtime.js:63)
    at Generator.invoke [as _invoke] (runtime.js:293)
    at Generator.next (runtime.js:118)
    at asyncGeneratorStep (asyncToGenerator.js:3)
    at _next (asyncToGenerator.js:25)
    at asyncToGenerator.js:32
    at new Promise (<anonymous>)
    at Function.<anonymous> (asyncToGenerator.js:21)
    at Function.create (replicator.js:1169)
    at Box._callee2$ (3box.js:169)
    at tryCatch (runtime.js:63)
    at Generator.invoke [as _invoke] (runtime.js:293)
    at Generator.next (runtime.js:118)
    at asyncGeneratorStep (asyncToGenerator.js:3)
    at _next (asyncToGenerator.js:25)
equals @ equals.js:15
equals @ index.js:374
(anonymous) @ multiaddr-set.js:66
has @ multiaddr-set.js:66
(anonymous) @ index.js:130
update @ index.js:130
put @ index.js:59
dialProtocol @ index.js:295
dial @ index.js:276
connect @ connect.js:7
(anonymous) @ utils.js:180
Replicator @ replicator.js:92
_callee19$ @ replicator.js:1153
tryCatch @ runtime.js:63
invoke @ runtime.js:293
(anonymous) @ runtime.js:118
asyncGeneratorStep @ asyncToGenerator.js:3
_next @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
create @ replicator.js:1169
_callee2$ @ 3box.js:169
tryCatch @ runtime.js:63
invoke @ runtime.js:293
(anonymous) @ runtime.js:118
asyncGeneratorStep @ asyncToGenerator.js:3
_next @ asyncToGenerator.js:25
Promise.then (async)
asyncGeneratorStep @ asyncToGenerator.js:13
_next @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
_init @ 3box.js:205
_callee27$ @ 3box.js:1729
tryCatch @ runtime.js:63
invoke @ runtime.js:293
(anonymous) @ runtime.js:118
asyncGeneratorStep @ asyncToGenerator.js:3
_next @ asyncToGenerator.js:25
Promise.then (async)
asyncGeneratorStep @ asyncToGenerator.js:13
_next @ asyncToGenerator.js:25
Promise.then (async)
asyncGeneratorStep @ asyncToGenerator.js:13
_next @ asyncToGenerator.js:25
Promise.then (async)
asyncGeneratorStep @ asyncToGenerator.js:13
_next @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
create @ 3box.js:1743
App.generatePrivateKey @ App.tsx:28
callCallback @ react-dom.development.js:188
invokeGuardedCallbackDev @ react-dom.development.js:237
invokeGuardedCallback @ react-dom.development.js:292
invokeGuardedCallbackAndCatchFirstError @ react-dom.development.js:306
executeDispatch @ react-dom.development.js:389
executeDispatchesInOrder @ react-dom.development.js:414
executeDispatchesAndRelease @ react-dom.development.js:3278
executeDispatchesAndReleaseTopLevel @ react-dom.development.js:3287
forEachAccumulated @ react-dom.development.js:3259
runEventsInBatch @ react-dom.development.js:3304
runExtractedPluginEventsInBatch @ react-dom.development.js:3514
handleTopLevel @ react-dom.development.js:3558
batchedEventUpdates$1 @ react-dom.development.js:21871
batchedEventUpdates @ react-dom.development.js:795
dispatchEventForLegacyPluginEventSystem @ react-dom.development.js:3568
attemptToDispatchEvent @ react-dom.development.js:4267
dispatchEvent @ react-dom.development.js:4189
unstable_runWithPriority @ scheduler.development.js:653
runWithPriority$1 @ react-dom.development.js:11039
discreteUpdates$1 @ react-dom.development.js:21887
discreteUpdates @ react-dom.development.js:806
dispatchDiscreteEvent @ react-dom.development.js:4168

And then this:

TypeError: Cannot read property 'length' of undefined
    at encode (0.chunk.js:279001)
    at Object.encode (0.chunk.js:279030)
    at Base.encode (0.chunk.js:278704)
    at Function.encode (0.chunk.js:278821)
    at push../node_modules/ipfs-repo/src/blockstore-utils.js.exports.cidToKey (0.chunk.js:280202)
    at Object.has (0.chunk.js:280377)
    at Object.put (0.chunk.js:280328)
    at Bitswap.put (0.chunk.js:272346)
    at BlockService.put (0.chunk.js:274269)
    at put (0.chunk.js:299037)
    at async persist (0.chunk.js:288709)
    at connect.3box.io/v1/async http:/localhost:3002/static/js/0.chunk.js:287641
    at async parallelBatch (0.chunk.js:338799)
    at async buildFileBatch (0.chunk.js:287715)
    at async batch (0.chunk.js:337967)
    at async reduceToParents (0.chunk.js:287586)
    at async balanced (0.chunk.js:287580)
    at async all (0.chunk.js:337925)
    at async fileBuilder (0.chunk.js:287822)
    at async parallelBatch (0.chunk.js:338799)
    at async treeBuilder (0.chunk.js:288633)
    at async push../node_modules/ipfs-unixfs-importer/src/index.js.module.exports (0.chunk.js:288549)
    at connect.3box.io/v1/async http:/localhost:3002/static/js/0.chunk.js:298659
    at connect.3box.io/v1/async http:/localhost:3002/static/js/0.chunk.js:298685
    at connect.3box.io/v1/async http:/localhost:3002/static/js/0.chunk.js:298700
    at async add (0.chunk.js:298650)

Any ideas? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant