nylas-python icon indicating copy to clipboard operation
nylas-python copied to clipboard

Empty Email Body in object of webhook

Open nisarg-ss opened this issue 1 year ago • 0 comments

Describe the bug i have configured nylas webhook for emails i receive. from today only I am getting empty 'body' in the webhooks.

Expected behavior I was getting HTML content of email in request['object']['body'] before.

SDK Version: 6.3.0

sample webhook body I am getting from webhook: Request - {'specversion': '1.0', 'type': 'message.created.truncated', 'source': '/google/emails/realtime', 'id': 'fbdfb', 'time': 1725951096, 'webhook_delivery_attempt': 1, 'data': {'application_id': 'fgnfgnfgn', 'object': {'attachments': [], 'bcc': [], 'body': '', 'cc': [], 'date': 1725951056, 'folders': ['UNREAD', 'CATEGORY_PERSONAL', 'INBOX'], 'from': [{'email': '[email protected]', 'name': 'john dow'}], 'grant_id': 'sehdg', 'id': '3e', 'object': 'message', 'reply_to': [], 'snippet': 'Company Contact Country Alfreds Futterkiste Maria Anders Germany Centro comercial Moctezuma Francisco Chang Mexico Ernst Handel Roland Mendel Austria Island Trading Helen Bennett UK Laughing Bacchus', 'starred': False, 'subject': 'Re: Test HTML Body', 'thread_id': 'b93f', 'to': [{'email': '[email protected]', 'name': 'test'}], 'unread': True}}}

nisarg-ss avatar Sep 10 '24 07:09 nisarg-ss