I'm trying to consume/publish Platform Events using aiosfstream python library. There is a publish() function but I always get an error response:
aiocometd.exceptions.ServerError: ('Publish request failed.', {'clientId': '3bq174in63lwkx7j1asoyin32nemt', 'channel': '/event/TestEvent__e', 'id': '4', 'successful': False})
Here is my code to publish an event. TestEvent__e has just one text field in it - message__c.
CHANNEL_PATH = "/event/TestEvent__e"
messageData = {"message__c": "Hello, THIS IS CLIENT SPEAKING!!"}
await client.publish(CHANNEL_PATH,message)
What can I change? What would be the correct message format to publish it to salesforce event bus?
aiosfstream: