Hi, I am trying to make a "HTTP XML/REST Value" to retrieve a JSON document and select a value from the returned document. For some reason it keeps on coming back with the message "Node /cb/ops/GetsRaw/count not found in XML result.".
When I copy & paste the URL used in the sensor in my browser I get the response I am expected. A JSON document.
When trying to retrieve the first value, just for starters, I get the error message. The start of the JSON document is below. I did not paste the complete document as it would make the post very long.
{ "cb": {"ops": {"GetsRaw": {"count":8126574,"sum":127941537366800,"min":0,"max":18900854700,"mean":1.574360085403763e+07,"p25":1003675,"p50":4005400,"p75":10996700,"p90":29114940,"p99":184729708}, "Incr": {"count":9199,"sum":80663536000,"min":0,"max":2473108300,"mean":8.768728774866832e+06,"p25":987300,"p50":1004700,"p75":5997200,"p90":232311530,"p99":852207675}, "Write(raw)": {"count":12205,"sum":90264111600,"min":0,"max":1643077900,"mean":7.395666661204425e+06,"p25":993700,"p50":1993500,"p75":3005100,"p90":4999940,"p99":157136311}, "Write(raw|addonly)": {"count":132,"sum":24322355200,"min":0,"max":1006045200,"mean":1.8426026666666666e+08,"p25":2260900,"p50":17502800,"p75":352517375,"p90":591725120,"p99":993174671}, "casNext": {"count":3304059,"sum":14070360215100,"min":0,"max":18909846000,"mean":4.258507555434089e+06,"p25":975200,"p50":1003500,"p75":6999825,"p90":36002640,"p99":216140193}}, "pools": {"10.80.136.214:11210": {"count":4051212,"sum":7761584200,"min":0,"max":112999500,"mean":1915.867202210104,"p25":0,"p50":0,"p75":0,"p90":0,"p99":0}, "10.80.136.215:11210": {"count":4356194,"sum":6524166800,"min":0,"max":94003700,"mean":1497.6759069958775,"p25":0,"p50":0,"p75":0,"p90":0,"p99":0}, "10.80.136.226:11210": {"count":3044769,"sum":5502410500,"min":0,"max":88004400,"mean":1807.168458428209,"p25":0,"p50":0,"p75":0,"p90":0,"p99":0}}}, "cmdline": ["C:\\Program Files (x86)\\Couchbase\\sync_gateway.exe","C:\\Program Files (x86)\\Couchbase\\config.json"], "goroutine_stats":
When I paste the return in a JSON validation tool it returns with the message it is valid. So I am assuming the brackets are all in the correct place.
When I manually create a new document and type all the values myself and run it I do get the response I need.
{ "cb": { "ops": { "GetsRaw": { "count":8105315, "sum":127662848204900 } } } }
So, where am I taking a wrong turn? Or is the original JSON document incorrect?
Add comment