Title
#users-public
Newskooler

Newskooler

07/07/2022, 1:16 PM
Another q for python users: When inserting ILP via Python as per the docs example:
import time
import socket
import sys

HOST = 'localhost'
PORT = 9009
# For UDP, change socket.SOCK_STREAM to socket.SOCK_DGRAM
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

def send_utf8(msg):
    sock.sendall(msg.encode())

try:
    sock.connect((HOST, PORT))
    send_utf8(f'trades,name=client_timestamp value=12.4 {time.time_ns()}\n')
except socket.error as e:
    sys.stderr.write(f'Got error: {e}')

sock.close()
I noticed that errors are not “captured”. In particular, when I have the
server.conf
set to false when creating a table or column automatically. I would expect that when I try and write to table that does not exist - I will get an error. Instead it runs / no error is captured and no data is written.