vRealize Automation 8.5 – Code Stream – Unexpected character (‘\’ (code 92))

This post was originally published on this site

The Issue

When running certain REST Tasks in Code Stream, the pipeline execution fails on this task with:

Unexpected character ('' (code 92)): was expecting double-quote to start field name n at [Source: (io.netty.buffer.ByteBufInputStream); line: X, colume: X]"
vRA 8.5 Code Stream - Unexpected character was expecting double-quote to start field name - Error
The Workaround

You need to flatten/compact/stringify the JSON payload of your task in the pipeline. So that is a single line.

  • This is my original payload for the REST task.

vRA 8.5 Code Stream - Unexpected character was expecting double-quote to start field name - Original Task

  • I then paste this into https://jsonformatter.org
  • Click “Minify/Compact”
  • Copy the flattened JSON on the right hand side.

vRA 8.5 Code Stream - Unexpected character was expecting double-quote to start field name - Stringify compact flatten json

  • Paste this data back into my payload. Which you’ll now see shows as a single line 1.

vRA 8.5 Code Stream - Unexpected character was expecting double-quote to start field name - Fixed Task

The Fix

This issue is resolved in vRealize Automation 8.5.1.

Regards

https://platform.twitter.com/widgets.js

Dean Lewis

The post vRealize Automation 8.5 – Code Stream – Unexpected character (‘’ (code 92)) appeared first on vEducate.co.uk.