Question
· Jan 2

How to debug ERROR_SEQUENCE_ERROR when using irisnative python module

Using the below python script I am getting : 

$ ./hello_world.py 
Traceback (most recent call last):
  File "/home/wwillett/dev/vscode-objectscript/Samples-python-helloworld/./hello_world.py", line 34, in <module>
    run()
  File "/home/wwillett/dev/vscode-objectscript/Samples-python-helloworld/./hello_world.py", line 21, in run
    connection = irisnative.createConnection(ip, port, namespace, username, password)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: * [ERROR_SEQUENCE_ERROR]

I have verified that the Gateway is running.

I don't know what logs to look at for more information. I have checked mgr/messages.log, csp/CSP.log and httpd/logs/error.log. Nothing in ^%ER for either the USER or %SYS namespaces.

My os is Fedora 38

 

Script :

#!/bin/python3

 

"""

PURPOSE: Makes a connection to an instance of InterSystems IRIS Data Platform.

This example also stores data natively into your instance of InterSystems IRIS.

"""

import irisnative

def run():

# Credentials to connect to InterSystems IRIS database

ip = "127.0.0.1"

port = 53472

namespace = "USER"

username = "wwillett"

password = "xxxxx"

 

# Make connection to InterSystems IRIS database

connection = irisnative.createConnection(ip, port, namespace, username, password)    <------- FAILS HERE

print("Hello World! You have successfully connected to InterSystems IRIS.")

 

if __name__ == '__main__':

run()

Product version: IRIS 2021.2
$ZV: IRIS for UNIX (Red Hat Enterprise Linux for x86-64) 2021.1.2 (Build 336U) Wed Mar 16 2022 17:56:57 EDT
Discussion (2)2
Log in or sign up to continue

Hi,
may be that you are connecting to the webserver port and not the superserver one?

Can you post an "iris list"?

You can also include the connection in a try/catch and check on iris in application error logs and audit database (the audit db probably is the one that you need to check first).

you can have a look at a script that i've made that basically implements a remote cli to iris

https://github.com/m0nt0/riris/blob/main/src/riris