#IPC problem

1 messages · Page 1 of 1 (latest)

round scarab
#

Only 1 thing can be on a given port

#

Your port already has something running on it

#

Either change the port, or stop whatever is running on it

hardy escarp
#

And this error will remain

round scarab
#

Then your starting it multiple times in your script

hardy escarp
#

I use multiprocessing could this be related to this?

round scarab
#

You start an IPC server each time the file is opened

hardy escarp
round scarab
#

Only start it when the ccog is made might do it

hardy escarp
#

but I have an error when accessing the code to the IPC

#

{'error': 'IPC route raised error of type AttributeError', 'code': 500}

#

code

#
...

async def send_audit_ds(action_info):
    response = await ipc_client.request("send_audit_message", data={"action": action_info})
    print(response)

...

action_info = f"Action: Invite\nStatic: {static}\nOrgan: {organ_curr}\nTimespan: {timespan}"
asyncio.run(send_audit_ds(action_info))

...
round scarab
#

So make an error handler and look at the error.. shrug