Question Pietro Di Leo · Apr 17 module 'iris' has no attribute 'arrayref' while converting a python dictionary into an array Hello everybody, I've been experimenting with Embedded Python and have been following the steps outlined in this documentation: https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls... I'm trying to convert a python dictionary into an objectscript array but there is an issue with the 'arrayref' function, that is not working as in the linked example. This is a snapshoot of my IRIS terminal: #Embedded Python #ObjectScript #Python #Terminal #InterSystems IRIS 0 2 1 51
Question Pietro Di Leo · Apr 10 Initiating a Method After a Timeout During Message Delivery Hello everyone, I'm currently working on a business operation that employs a retry mechanism with a FailureTimeout = -1. So, this BO attempts to resend the message at the end of a RetryInterval of n seconds (n is configurable). #Business Operation #InterSystems IRIS 1 4 1 89
Question Pietro Di Leo · Jan 17 How to export a project via Visual Studio Code? Hi everyone, Does anyone know how to export projects via VSC? I opened the project through the "InterSystems Tools" plugin (command is "Edit Code in Project") and I can correctly work on it. However, when I try using the "ObjectScript" plugin to export the project (right click on the project -> "Export Project Contents") This message appears and it is not possible to export the project: #Data Import and Export #ObjectScript #Tools #InterSystems IRIS #VSCode 0 3 0 275
Article Pietro Di Leo · Nov 16, 2023 5m read Accessing the IRIS Terminal: A Comprehensive Guide for Visual Studio Code Users Introduction #Docker #Studio #Terminal #Tips & Tricks #Tools #InterSystems IRIS #VSCode 16 7 8 976
Question Pietro Di Leo · Nov 6, 2023 Malformed JSON in response body Hi everyone, today I'm asking your help with an issue related to the response messages sent from my production to a client software, such as Postman or SoapUI. Issue In the last few days I've been unable to view the responses received from my production in Postman, even if I was able to do so earlier. I'm sending the request to a remote server reachable via a Putty tunnel. Postman Test I'm currently testing this simple POST message: #ObjectScript #InterSystems IRIS 1 1 0 340
Question Pietro Di Leo · Oct 16, 2023 How to send a message to Render and gunicorn-deployed web service Hi everyone, My problem today is how to send an HTTP message to a web service deployed via Render and gunicorn. Issue Every time I try to contact the web service I get an error. Searching on the web, I've found this StackOverflow question that suggests the issue could be set off from a missing "/" character in the endpoint string. #Business Operation #InterSystems IRIS 0 4 0 190
Question Pietro Di Leo · Oct 13, 2023 Python Integration Issues on Remote IRIS Server Hi everyone, I'm attempting to compile a basic Python code on a remote server, but it appears that the compiler doesn't recognize the language. The remote server is running a virtual machine with Oracle Linux Server 7.9 (64-bit), and it has IRIS for UNIX (Red Hat Enterprise Linux for x86-64) 2021.1 (Build 215U) [HealthConnect:3.3.0] installed. When I try to compile a script that includes a Python ClassMethod, such as this "testpy.cls": #Embedded Python #Python #Terminal #HealthShare #InterSystems IRIS for Health 0 4 0 157
Question Pietro Di Leo · Oct 8, 2023 Automatic prettification of JSON in Visual Trace Hello everyone, Is there a way to prettify the JSON streams in the incoming HTTP messages so that they are more readable in Visual Trace? The HTTP messages sent by many software aren't prettified and are displayed like this in the Visual Trace: On the other hand, other software like Postman prettify the messages and they are displayed in this way: #JSON #Visualization #HealthShare 0 3 0 189
Question Pietro Di Leo · Sep 22, 2023 How to start a new line of text within $$$LOGINFO or $$$TRACE? Hi everyone, Today I have a simple yet potentially valuable question: How can I begin a new line of text within $$$LOGINFO or $$$TRACE? For instance, if I need to display a long log message within the visual trace, is it possible to do something like this: #ObjectScript #InterSystems IRIS #VSCode 0 6 0 396
Question Pietro Di Leo · Sep 11, 2023 Is it possible to dynamically adjust the FailureTimeout of a Business Operation? Hi everyone, I'm working on a Business Operation whit an HTTP Outbound Adapter and I would like to know if is possible to adjust the FailureTimeout value based on the incoming message type. For example, I would like to have a FailureTimeout of 60 seconds for the standard operations and a FailureTimeout of -1 (wait forever) for few special operations that absolutely need a response. Can we dynamically modify the FailureTimeout through code, based on either the incoming message type or a specified parameter?n the incoming message type or depending by a parameter? #Business Operation #InterSystems IRIS 0 10 0 422
Question Pietro Di Leo · Sep 7, 2023 Inconsistent Visual Trace Outputs Hi everyone, I have a question related to a strange issue I've been experiencing over the last few days. Context I'm attempting to create an automatic resending system that, if no reply is received from the server, raises an error and re-sends the message. This process continues for the a duration defined by the FailureTimeout (e.g., 20 seconds), and a new message is being sent every 5 seconds until the FailureTimeout is reached. If no response was obtained from the server, the system returns an error. #InterSystems IRIS 0 2 0 181
Question Pietro Di Leo · Aug 11, 2023 Is there something similar to the Studio Output panel available in Visual Studio Code? Hi everyone, Lately, I've been spending a lot of time with Visual Studio Code (VSC), and I've been wondering if there's a terminal or a panel within VSC that acts like the Intersystems Studio Output panel, which serves both as an input and output window and allows the execution of ObjectScript commands. Could anyone help? Thanks :) #Key Question #InterSystems IRIS #VSCode 1 11 1 306
Question Pietro Di Leo · Aug 8, 2023 Issues with Automatic Resending in a Business Operation Context I have created a Business Operation (BO) named "Sender" that sends HTTP messages to an endpoint (for testing, I'm using Postman's Mock Servers). Goal: I want to set up an automatic timeout mechanism so that if I don't receive a response from the server within 18 seconds, an alert is generated and the message is resent. This process should be repeated every 18 seconds, for a maximum of 90 seconds. If no response is received within 90 seconds, I would like to generate an error message. On the other hand, if a response is received, I want to stop the resending process and complete the operation by indicating successful reception. #Debugging #InterSystems IRIS 0 7 0 248
Question Pietro Di Leo · Jul 24, 2023 How to automatically resend an HTTP message from a Business Operation Hi everyone, I'm trying to figure out how to automatically resend a message using a business operation. #InterSystems IRIS 0 8 0 248