Adam Coppola · May 19, 2020 go to post

You are getting an"invalid JSON" error because the JSON you're POSTing is itself the OpenAPI 2.0 JSON Schema File. It defines how the standard works in JSON.

Instead, you'll need to post an OpenAPI document, abiding by those standards, defining your RESTful service.
More info here: https://swagger.io/specification/

Adam Coppola · May 19, 2020 go to post

Ikara, No problem!

I have already contacted documentation about this. I agree; the current language is ambiguous.

Adam Coppola · Feb 3, 2021 go to post

Sergei's picture shows a menu located in the InterSystems View. The ISC logo for that view appears on the left of VS Code once you have a ObjectScript connection. You can configure Export settings, to an extent, as {objectscript.export: {}} in workspace or user settings.


See the README on the repository: https://github.com/intersystems-community/vscode-objectscript

And a few more learning materials: https://learning.intersystems.com/course/view.php?name=VSCodeRG

Adam Coppola · Jan 31, 2022 go to post

In VS Code, you can create a debugger launch configuration for your API endpoint. Set the "request" attribute to "attach" and the "processID" attribute to the job ID of the production component that services your API. Set breakpoints and run this configuration. Then when a request arrives, you can debug the service and endpoints while viewing the REST request contents.

Here is a reference video; example starts at 4:00.

https://www.youtube.com/watch?v=diLHwA0rlGM

Adam Coppola · Jan 31, 2022 go to post

Good point. In the example I gave, the request is forwarded to a business process which has a job ID.

Adam Coppola · Jan 3, 2023 go to post

The InterSystems learning team thanks you for your honest review. I agree; overall, the training is a good introduction, but the fifth and final step is more difficult.

Adam Coppola · Mar 14, 2023 go to post

I installed telnet in an IRIS container using:

docker exec -u root -it <container-name> apt-get install telnet

Then tested it using:

docker exec -u root -it <container-name> telnet <target-ip> <target-port>

This requires your container to be networked with the target. So a full example:

    docker network create networkECP
    docker network connect networkECP iris-data-server
    docker network connect networkECP iris-app-1
    docker network inspect networkECP
    docker exec -u root -it iris-app-1 ping iris-data-server
    docker exec -u root -it iris-app-1 apt-get update && apt-get install telnet
    docker exec -u root -it iris-app-1 telnet iris-data-server 1972
Adam Coppola · Jan 3, 2024 go to post

While you are running the IAM setup script, provide the script with a public static IP addres for the host that IRIS (or IRIS container) runs on, and provide the IRIS web server port.

Then after you install IAM, while you are creating a service and sending requests, the IP address should be the address of the host that IAM is running on, and you use an IAM port for incomiong traffic, (e.g. 8000).

Here is documentation about IAM ports for version 3.4.

 And this video about installing IAM has more information: 

Adam Coppola · Jul 23, 2024 go to post

Thank you for the review of this online learning program! As a course developer for InterSystems, I am glad you found it engaging.

I am looking into the issues you described in your "More Comments" sections, and I will let you know when they are resolved.

UPDATE: Both broken VMs have been repaired. In the VM for the exercise Building a Server-Side Application with InterSystems IRIS, the IRIS user's password had expired. In the VM for the assessment, a change in the VS Code configuration had made the file read-only. It is edit-able again now. I am also updating the quizzes, to improve the accuracy of the questions and answers. I will not post those updates here, to avoid giving away the answers to future users. Thank you again for your comments! In the future you can email onlinetraining@intersystems.com if you find broken VMs or inaccurate quizzes.

Adam Coppola · Aug 27, 2024 go to post

The intersystems-iris-native module for node.js can be found within the Intersystems installation directory. Specifically, it is in: isc-install-dir\dev\nodejs\intersystems-iris-native\
Basically, you can copy the module from the InterSystems installation directory into your node_modules directory for your project, or install it globally.
Source: https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cl… 
Failing that, you can also locate the node.js driver and other drivers from: https://github.com/intersystems-community/iris-driver-distribution 

To the first question about Python packages: 
The pandas package doesn't come pre-installed. You are correct that the Python shell is functional in a basic IRIS instance, but some packages need to be installed (latest docs for installing python packages in containers). Other packages like math and iris are pre-installed.
To the second question:
I'm not sure what you're looking for here.
It looks like you have the VS Code explorer configured for server-side editing of the USER and US-S namespaces on your instance. You can create and add class files here, to be compiled within those namespaces. Those would be your user-defined files, including Python classes and scripts. They'll have access to the python libraries in IRIS. Here's some more documentation on running Python.