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

Potential uncaught exception on command line #1176

Closed
aphelionz opened this issue Jan 16, 2018 · 0 comments
Closed

Potential uncaught exception on command line #1176

aphelionz opened this issue Jan 16, 2018 · 0 comments
Labels
exp/novice Someone with a little familiarity can pick up help wanted Seeking public contribution on this issue kind/bug A bug in existing code (including security flaws) P2 Medium: Good to have, but can wait until someone steps up

Comments

@aphelionz
Copy link
Contributor

  • Version:
    js-ipfs version: 0.27.6

  • Platform:
    Linux ip-172-31-11-196 4.4.0-1048-aws daemon #57-Ubuntu SMP Tue Jan 9 21:45:57 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

  • Subsystem:
    jsipfs swarm connect

Type:

Bug

Severity:

High

Description:

When trying to connect to a peer I get an error that appears to be the result of an uncaught exception

Steps to reproduce the error:

  1. From the command line run: jsipfs swarm connect /libp2p-webrtc-star/dns4/star-signal.cloud.ipfs.team/wss/ipfs/QmVP7nWPqUd8fFvbrdbiViixtybEUnpc45s6vQtPM6Ce7L
  2. Note the error produced:
/home/ubuntu/.npm-global/lib/node_modules/ipfs/src/cli/commands/swarm/connect.js:20
        throw err
        ^

SyntaxError: Unexpected token A in JSON at position 0
    at JSON.parse (<anonymous>)
    at streamToValue (/home/ubuntu/.npm-global/lib/node_modules/ipfs/node_modules/ipfs-api/src/utils/stream-to-json-value.js:25:18)
    at concat (/home/ubuntu/.npm-global/lib/node_modules/ipfs/node_modules/ipfs-api/src/utils/stream-to-value.js:12:22)
    at ConcatStream.<anonymous> (/home/ubuntu/.npm-global/lib/node_modules/ipfs/node_modules/concat-stream/index.js:36:43)
    at emitNone (events.js:111:20)
    at ConcatStream.emit (events.js:208:7)
    at finishMaybe (/home/ubuntu/.npm-global/lib/node_modules/ipfs/node_modules/readable-stream/lib/_stream_writable.js:607:14)
    at afterWrite (/home/ubuntu/.npm-global/lib/node_modules/ipfs/node_modules/readable-stream/lib/_stream_writable.js:470:3)
    at _combinedTickCallback (internal/process/next_tick.js:144:20)
    at process._tickCallback (internal/process/next_tick.js:180:9)
@daviddias daviddias added status/ready Ready to be worked exp/novice Someone with a little familiarity can pick up help wanted Seeking public contribution on this issue P2 Medium: Good to have, but can wait until someone steps up kind/bug A bug in existing code (including security flaws) labels Jan 25, 2018
paulogr added a commit to paulogr/js-ipfs that referenced this issue Jan 29, 2018
paulogr added a commit to paulogr/js-ipfs that referenced this issue Jan 29, 2018
@ghost ghost removed the status/ready Ready to be worked label Feb 15, 2018
daviddias pushed a commit that referenced this issue Feb 15, 2018
JonKrone pushed a commit that referenced this issue Feb 16, 2018
JonKrone pushed a commit to JonKrone/js-ipfs that referenced this issue Feb 19, 2018
dryajov pushed a commit that referenced this issue Feb 28, 2018
MicrowaveDev pushed a commit to galtproject/js-ipfs that referenced this issue May 22, 2020
* chore: change interface tests to async node creation

* chore: update interface-ipfs-core dep

* chore: code review changes
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
exp/novice Someone with a little familiarity can pick up help wanted Seeking public contribution on this issue kind/bug A bug in existing code (including security flaws) P2 Medium: Good to have, but can wait until someone steps up
Projects
None yet
Development

No branches or pull requests

2 participants