Skip to content

Instantly share code, notes, and snippets.

@keks
Last active October 23, 2017 13:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keks/f90ee9c6f8d9663cb9397e21cc340abe to your computer and use it in GitHub Desktop.
Save keks/f90ee9c6f8d9663cb9397e21cc340abe to your computer and use it in GitHub Desktop.
POST /api/v0/bootstrap/add?arg=this%2FIs%2FSo%2FInvalid%2F&stream-channels=true HTTP/1.1
User-Agent: /node-ipfs-api/14.3.5/
Host: 127.0.0.1:33765
Connection: close
Content-Length: 0
HTTP/1.1 200 OK
Access-Control-Allow-Headers: X-Stream-Output, X-Chunked-Output, X-Content-Length
Access-Control-Expose-Headers: X-Stream-Output, X-Chunked-Output, X-Content-Length
Content-Type: application/json
Server: go-ipfs/0.4.12-dev
Trailer: X-Stream-Error
Vary: Origin
Date: Mon, 23 Oct 2017 12:56:02 GMT
Connection: close
Transfer-Encoding: chunked
{"Message":"invalid multiaddr, must begin with /","Code":0,"Type":"error"}
HTTP/1.1 500 Internal Server Error
Access-Control-Allow-Headers: X-Stream-Output, X-Chunked-Output, X-Content-Length
Access-Control-Expose-Headers: X-Stream-Output, X-Chunked-Output, X-Content-Length
Content-Type: application/json
Server: go-ipfs/0.4.11
Trailer: X-Stream-Error
Vary: Origin
Date: Sun, 22 Oct 2017 14:11:09 GMT
Connection: close
Transfer-Encoding: chunked
{"Message":"invalid multiaddr, must begin with /","Code":0}
Summary of all failing tests
FAIL test/get.spec.js (7.815s)
● .get › Callback API › get err with out of range compression level
TypeError: stream.on is not a function
at destroyer (node_modules/pump/index.js:24:10)
at node_modules/pump/index.js:68:12
at Array.map (<anonymous>)
at pump (node_modules/pump/index.js:65:26)
at TarStreamToObjects (src/utils/tar-stream-to-objects.js:44:3)
at send (src/utils/request-api.js:201:7)
at f (node_modules/once/once.js:25:25)
at streamToValue (src/utils/stream-to-json-value.js:30:5)
at data (src/utils/stream-to-value.js:12:18)
at ConcatStream.<anonymous> (node_modules/concat-stream/index.js:36:43)
FAIL test/interface/config.spec.js (5.261s)
● .config › callback API › .get › fail on non valid key
AssertionError: expected null to exist
at ipfs.config.get (node_modules/interface-ipfs-core/src/config.js:59:28)
at send (src/config/get.js:28:7)
at f (node_modules/once/once.js:25:25)
at streamToValue (src/utils/stream-to-json-value.js:30:5)
at data (src/utils/stream-to-value.js:12:18)
at ConcatStream.<anonymous> (node_modules/concat-stream/index.js:36:43)
at emitNone (events.js:110:20)
at ConcatStream.emit (events.js:207:7)
at finishMaybe (node_modules/readable-stream/lib/_stream_writable.js:607:14)
at endWritable (node_modules/readable-stream/lib/_stream_writable.js:615:3)
● .config › callback API › .get › fail on non exist()ent key
AssertionError: expected null to exist
at ipfs.config.get (node_modules/interface-ipfs-core/src/config.js:66:28)
at send (src/config/get.js:28:7)
at f (node_modules/once/once.js:25:25)
at streamToValue (src/utils/stream-to-json-value.js:30:5)
at data (src/utils/stream-to-value.js:12:18)
at ConcatStream.<anonymous> (node_modules/concat-stream/index.js:36:43)
at emitNone (events.js:110:20)
at ConcatStream.emit (events.js:207:7)
at finishMaybe (node_modules/readable-stream/lib/_stream_writable.js:607:14)
at endWritable (node_modules/readable-stream/lib/_stream_writable.js:615:3)
● .config › callback API › .set › fail on non valid value
AssertionError: expected null to exist
at ipfs.config.set (node_modules/interface-ipfs-core/src/config.js:116:28)
at f (node_modules/once/once.js:25:25)
at streamToValue (src/utils/stream-to-json-value.js:30:5)
at data (src/utils/stream-to-value.js:12:18)
at ConcatStream.<anonymous> (node_modules/concat-stream/index.js:36:43)
at emitNone (events.js:110:20)
at ConcatStream.emit (events.js:207:7)
at finishMaybe (node_modules/readable-stream/lib/_stream_writable.js:607:14)
at endWritable (node_modules/readable-stream/lib/_stream_writable.js:615:3)
at ConcatStream.Object.<anonymous>.Writable.end (node_modules/readable-stream/lib/_stream_writable.js:571:41)
FAIL test/files.spec.js (5.385s)
● .files (the MFS API part) › Callback API › files.stat file that does not exist()
AssertionError: expected null to exist
at ipfs.files.stat (test/files.spec.js:194:24)
at f (node_modules/once/once.js:25:25)
at streamToValue (src/utils/stream-to-json-value.js:30:5)
at data (src/utils/stream-to-value.js:12:18)
at ConcatStream.<anonymous> (node_modules/concat-stream/index.js:36:43)
at emitNone (events.js:110:20)
at ConcatStream.emit (events.js:207:7)
at finishMaybe (node_modules/readable-stream/lib/_stream_writable.js:607:14)
at endWritable (node_modules/readable-stream/lib/_stream_writable.js:615:3)
at ConcatStream.Object.<anonymous>.Writable.end (node_modules/readable-stream/lib/_stream_writable.js:571:41)
FAIL test/ls.spec.js (5.064s)
● .ls › Callback API › should correctly handle a nonexist()ing hash
AssertionError: expected null to exist
at ipfs.ls (test/ls.spec.js:56:24)
at f (node_modules/once/once.js:25:25)
at streamToValue (src/utils/stream-to-json-value.js:30:5)
at data (src/utils/stream-to-value.js:12:18)
at ConcatStream.<anonymous> (node_modules/concat-stream/index.js:36:43)
at emitNone (events.js:110:20)
at ConcatStream.emit (events.js:207:7)
at finishMaybe (node_modules/readable-stream/lib/_stream_writable.js:607:14)
at endWritable (node_modules/readable-stream/lib/_stream_writable.js:615:3)
at ConcatStream.Object.<anonymous>.Writable.end (node_modules/readable-stream/lib/_stream_writable.js:571:41)
● .ls › Callback API › should correctly handle a nonexist()ing path
AssertionError: expected null to exist
at ipfs.ls (test/ls.spec.js:64:24)
at f (node_modules/once/once.js:25:25)
at streamToValue (src/utils/stream-to-json-value.js:30:5)
at data (src/utils/stream-to-value.js:12:18)
at ConcatStream.<anonymous> (node_modules/concat-stream/index.js:36:43)
at emitNone (events.js:110:20)
at ConcatStream.emit (events.js:207:7)
at finishMaybe (node_modules/readable-stream/lib/_stream_writable.js:607:14)
at endWritable (node_modules/readable-stream/lib/_stream_writable.js:615:3)
at ConcatStream.Object.<anonymous>.Writable.end (node_modules/readable-stream/lib/_stream_writable.js:571:41)
FAIL test/bootstrap.spec.js (5.002s)
● .bootstrap › Callback API › .add › returns an error when called with an invalid arg
AssertionError: expected null to be an instance of Error
at ipfs.bootstrap.add.err (test/bootstrap.spec.js:41:42)
at f (node_modules/once/once.js:25:25)
at streamToValue (src/utils/stream-to-json-value.js:30:5)
at data (src/utils/stream-to-value.js:12:18)
at ConcatStream.<anonymous> (node_modules/concat-stream/index.js:36:43)
at emitNone (events.js:110:20)
at ConcatStream.emit (events.js:207:7)
at finishMaybe (node_modules/readable-stream/lib/_stream_writable.js:607:14)
at endWritable (node_modules/readable-stream/lib/_stream_writable.js:615:3)
at ConcatStream.Object.<anonymous>.Writable.end (node_modules/readable-stream/lib/_stream_writable.js:571:41)
● .bootstrap › Callback API › .rm › returns an error when called with an invalid arg
AssertionError: expected null to be an instance of Error
at ipfs.bootstrap.rm.err (test/bootstrap.spec.js:82:42)
at f (node_modules/once/once.js:25:25)
at streamToValue (src/utils/stream-to-json-value.js:30:5)
at data (src/utils/stream-to-value.js:12:18)
at ConcatStream.<anonymous> (node_modules/concat-stream/index.js:36:43)
at emitNone (events.js:110:20)
at ConcatStream.emit (events.js:207:7)
at finishMaybe (node_modules/readable-stream/lib/_stream_writable.js:607:14)
at endWritable (node_modules/readable-stream/lib/_stream_writable.js:615:3)
at ConcatStream.Object.<anonymous>.Writable.end (node_modules/readable-stream/lib/_stream_writable.js:571:41)
Test Suites: 5 failed, 4 skipped, 20 passed, 25 of 29 total
Tests: 9 failed, 16 skipped, 258 passed, 283 total
Snapshots: 0 total
Time: 197.703s
Ran all test suites matching /test\/node.js$|test\/.*\.spec\.js$/i.
Your tests failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment