Problem with the built-in Siemplify (ChronicleSOAR) IDE's debug

Hi. We have been working on an API integration in SOAR and are running into a problem where the built-in Siemplify (ChronicleSOAR) IDE's debug output is throwing an error that it cannot interpret the JSON response being returned by our script: "Agent internal error: No JSON object could be decoded" - When testing the same script in an external IDE, it for sure is returning results in JSON, so I'm a little stumped.

0 5 230
5 REPLIES 5

hi, is it possible to share the code for us to reproduce the issue?

Sure. This is a redacted version of the script:

View files in slack

In the JSON returned, it does contain email message data, including headers, HTML, MIME/BASE64 encoded data like you might have in a raw email message. I am also wondering if something about that content is breaking the SOAR Debug tools ability to parse.

That might explain why in Pycharm IDE it works fine

hi @Jason_Bennett sorry for the pause here, yes the code looks very straightforward, im just wondering how can we repro it...
can you please advise what platform version, agent/publisher version you have, and also do you think its possible to share a json example? (like get it with pycharm maybe)