I need tech help

dani izzedin 1 Reputation point
2021-08-09T23:39:16.47+00:00

Hello,

My name is Dani. I'm a software engineer, writing you because of the problem I've met lately with o365 integration. For some reason sending messages that contain attachment from outlook integrated account throw this error
HTTPError('403 Client Error: Forbidden for url: https://graph.microsoft.com/v1.0/me/sendMail | Error Message: Cannot send this mail due to a transient error. Please try again later (0x00004000)., WASCL UserAction verdict is not None. Actual verdict is TransientError.') Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/celery/app/trace.py", line 385, in trace_task R = retval = fun(*args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/celery/app/trace.py", line 648, in __protected_call__ return self.run(*args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/sentry_sdk/integrations/celery.py", line 186, in _inner reraise(*exc_info) File "/usr/local/lib/python3.8/dist-packages/sentry_sdk/_compat.py", line 55, in reraise raise value File "/usr/local/lib/python3.8/dist-packages/sentry_sdk/integrations/celery.py", line 181, in _inner return f(*args, **kwargs) File "/app/backend/stylelab/api/outlook_sender.py", line 170, in send_email result = send_message(profile, msg) File "/app/backend/stylelab/api/outlook_sender.py", line 69, in send_message result = msg.send() File "/usr/local/lib/python3.8/dist-packages/O365/message.py", line 699, in send response = self.con.post(url, data=data) File "/usr/local/lib/python3.8/dist-packages/O365/connection.py", line 822, in post return self.oauth_request(url, 'post', data=data, **kwargs) File "/usr/local/lib/python3.8/dist-packages/O365/connection.py", line 800, in oauth_request return self._internal_request(self.session, url, method, **kwargs) File "/usr/local/lib/python3.8/dist-packages/O365/connection.py", line 762, in _internal_request raise HTTPError('{} | Error Message: {}'.format(e.args[0], error_message), response=response) from None requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://graph.microsoft.com/v1.0/me/sendMail | Error Message: Cannot send this mail due to a transient error. Please try again later (0x00004000)., WASCL UserAction verdict is not None. Actual verdict is TransientError.

This exception occurs only if the attachment present in the email.
Please help.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,445 questions
0 comments No comments
{count} votes