Assistance Needed: Error Encountered with journalctl Command Execution

Enable debug mode and check the log. An error occurs when I try to execute the command sudo journalctl -u kumomta -f. Here’s the error message that’s displayed:
message.txt (8.63 KB)

Lua code
–RABBITMQ_CONNECTION = ‘amqp://admin:admin@10.10.10.4:5672’

`local client = kumo.amqp.build_client os.getenv(“RABBITMQ_CONNECTION”)

kumo.on(‘make.amqp’, function(domain, tenant, campaign)
local connection = {}
function connection:send(message)
local confirm = client:publish { – line number 335
routing_key = rabitmqqueue,
payload = message:get_data(),
exchange = ‘transaction_email_events_exchange’
}
local result = confirm:wait()
if result.status == ‘Ack’ or result.status == ‘NotRequested’ then
return result.status
end
kumo.reject(500, kumo.json_encode(result))
end
return connection
end)`

version - kumod 2024.09.02-c5476b89

Your inital question contains your answer - you clearly have a problem on line 334 of your init.lua file. Posting random code without any explanation or indication that you have tried debugging this yourself is not helpful.

this code is related to log tracking using rabbitmq.