It looks like the program anticipates a response with a message key. It throws an error when there's no message key from the send event API. According to the documentation, it only returns a message key when there's an error with the request. Kindly make amendments to this code. Thanks!