ContributionsMost RecentMost LikesSolutionsSnapDataException is swallowing my stack trace string I’m having an issue right now with how the SnapDataException handles a full stacktrace event. Essentially this happens in developing snaps when we don’t have all the right jar files. The workaround is easy because I can set ERROR on output and check it, but it’s irritating because I’d like to have the Snap return an error and then show me the whole stack trace to troubleshoot. } catch (Throwable e) { StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); e.printStackTrace(pw); content.put("ERROR", sw.toString()); /* TB - 4/15/21 SnapDataException is really irritating and will delete the error message. You need to trap error in the pipeline or uncomment/comment this. throw new SnapDataException(document, String.format("Unexpected error: ", e.toString() + "/" + sw.toString()));*/ } Re: How to loop thru a REST snap It looks like the Snap just swallows the errors on the callback URL, so it wasn’t creating documents every time it ran. I fixed the URL and now it is. REST Call to Process more results I have a question the REST API to process more results. You can specify to process the next page of results, but I can find a way to keep appending the results from the previous call, so even if you process all the results, you only get the last page of the results from the GET REST API snap. Does anyone have a solution for this other than right an external function? Re: How to loop thru a REST snap This is interesting, but how is it useful if you need to write the results of a REST call out using another Snap? Re: Version Control With Snaplogic I’m looking for something more lightweight and less “snaplogic centric”. More along the lines of command line tools that will copy packages, create versions, copy pipelines etc, leaving the Git integrations outside the Snaplogic tool and in a CI/CD. Version Control With Snaplogic Has anyone been successful in implementing version control and continuous integration using Snaplogic? I’m interested to hear what you’ve done to automate builds and deployments of pipelines. [Edit] I don’t mean using Snaplogic to implement a kind of Jenkins, but rather to integrate Snaplogic and use something like Jenkins to take snapshots of development projects and versions and then migrate those versions from Dev to QA or from QA to Prod. Re: Getting the Status from a REST call Thank you. That is cleaner. $entity instanceof Object && “MessageId” in $entity This is what I doing before and it was kind of icky. Re: Getting the Status from a REST call This is what I have: $entity.toString().contains(“ERROR”) Getting the Status from a REST call Hi Folks, I’m having trouble getting a proper handling from Snaplogic on a REST call. So the rest call will return on success: “entity”: { “MessageId”:“0101017165ec422f-dfa2bb38-faac-4c48-bcd7-0e2869d80fb6-000000”, …} And on Error: “entity”: "ERROR: An error occurred … Thing is these are different - one is a dictionary and the other a string. So it fails badly when I check for entity error. Is there a standard pattern for this? Thanks, Tim SolvedRe: How to stream a binary PDF file to a file using Snaplogic Thanks! That’s exactly what I needed. Good to know that I can tweak the output on the mapper to cast a binary document to a binary stream.