Kubectl apply -o json” returned invalid JSON

Hi @finnian.dempsey

I hadn’t realised Octopus was using Powershell to parse the JSON. It looks like we have powershell 4 running on the Octopus server. It appears that the older version of ConvertFrom-Json cannot handle json embedded within Json. (see the example we attached).

We’ll see about upgrading the powershell version on that host and retest.

Yup, upgrading powershell on the Octopus host has sorted our problem. Thanks for your help folks

3 Likes

Hi @beirtipol,

Woohoo, that’s great to hear!

No problem at all, I’m glad we managed to get to the bottom of it!

Thanks for sharing the cause, I’ll definitely be keeping this in mind in future and will look into getting a note added in our docs.

Feel free to reach out again anytime!

Happy Deployments!

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.