Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG(WS): AttributeError: 'BadRequestsError' object has no attribute 'message' #298

Open
vfedotovs opened this issue Sep 6, 2024 · 0 comments

Comments

@vfedotovs
Copy link
Owner

reading as binary
2024-09-06 18:27:50,106 [INFO ] : sendgrid_mailer_main: 173: Attempting to send email via Sendgrid API
Traceback (most recent call last):
File "/Users/vfedotovs/projects/v155-RC3-dev-20240906/src/ws/app/wsmodules/./sendgrid_mailer.py", line 175, in sendgrid_mailer_main
response = sendgrid_client.send(message)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sendgrid/base_interface.py", line 63, in send
return self.client.mail.send.post(request_body=message)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/python_http_client/client.py", line 277, in http_request
self._make_request(opener, request, timeout=timeout)
File "/usr/local/lib/python3.11/site-packages/python_http_client/client.py", line 184, in _make_request
raise exc
python_http_client.exceptions.BadRequestsError: HTTP Error 400: Bad Request

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/vfedotovs/projects/v155-RC3-dev-20240906/src/ws/app/wsmodules/./sendgrid_mailer.py", line 189, in
sendgrid_mailer_main()
File "/Users/vfedotovs/projects/v155-RC3-dev-20240906/src/ws/app/wsmodules/./sendgrid_mailer.py", line 182, in sendgrid_mailer_main
log.info(f"{e.message}")
^^^^^^^^^
AttributeError: 'BadRequestsError' object has no attribute 'message'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant