vfedotovs / sslv_web_scraper

ss.lv web scraping app helps automate information scraping and filtering from classifieds and emails results and stores scraped data in database
GNU General Public License v3.0
5 stars 3 forks source link

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

Open vfedotovs opened 3 weeks ago

vfedotovs commented 3 weeks ago

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'