Node: v8_inspector: HTTP /json/version returns array instead of object

Created on 23 Nov 2016  路  1Comment  路  Source: nodejs/node

Version: v7.2.0
Platform: Darwin MacBook-234.local 16.0.0 Darwin Kernel Version 16.0.0: Mon Aug 29 17:56:20 PDT 2016; root:xnu-3789.1.32~3/RELEASE_X86_64 x86_64
Subsystem: v8_inspector

Steps:

  1. Start node --inspect
  2. Go to http://localhost:9229/json/version

Actual response:
The HTTP /json/version returns the version object wrapped in array

[ {
  "Browser": "node.js/v7.2.0",
  "Protocol-Version": "1.1"
} ]

Expected response:
The HTTP /json/version should return object in alignment with Chrome and other browsers.

{
  "Browser": "node.js/v7.2.0",
  "Protocol-Version": "1.1"
} 
inspector

Most helpful comment

>All comments

Was this page helpful?
0 / 5 - 0 ratings