Except Mastodon 502 Errors #62

Closed
opened 2019-06-10 09:49:24 +00:00 by b3yond · 0 comments
Owner

Author: @b3yond Posted at: 01.11.2018 13:19

Our logs are spammed with this error:

Unknown Mastodon API Error.
Traceback (most recent call last):
  File "/srv/ticketfrei/active_bots/mastodonbot.py", line 27, in crawl
    notifications = m.notifications()
  File "<decorator-gen-15>", line 2, in notifications
  File "/srv/ticketfrei/lib/python3.5/site-packages/mastodon/Mastodon.py", line 57, in wrapper
    return function(self, *args, **kwargs)
  File "/srv/ticketfrei/lib/python3.5/site-packages/mastodon/Mastodon.py", line 577, in notifications
    return self.__api_request('GET', '/api/v1/notifications', params)
  File "/srv/ticketfrei/lib/python3.5/site-packages/mastodon/Mastodon.py", line 1613, in __api_request
    error_msg)
mastodon.Mastodon.MastodonAPIError: ('Mastodon API returned error', 502, 'Bad Gateway', None)

Let's stop logging this shit, we don't need the information that (unknown) mastodon admins are reloading apache or something similar

Author: @b3yond Posted at: 01.11.2018 13:19 Our logs are spammed with this error: ``` Unknown Mastodon API Error. Traceback (most recent call last): File "/srv/ticketfrei/active_bots/mastodonbot.py", line 27, in crawl notifications = m.notifications() File "<decorator-gen-15>", line 2, in notifications File "/srv/ticketfrei/lib/python3.5/site-packages/mastodon/Mastodon.py", line 57, in wrapper return function(self, *args, **kwargs) File "/srv/ticketfrei/lib/python3.5/site-packages/mastodon/Mastodon.py", line 577, in notifications return self.__api_request('GET', '/api/v1/notifications', params) File "/srv/ticketfrei/lib/python3.5/site-packages/mastodon/Mastodon.py", line 1613, in __api_request error_msg) mastodon.Mastodon.MastodonAPIError: ('Mastodon API returned error', 502, 'Bad Gateway', None) ``` Let's stop logging this shit, we don't need the information that (unknown) mastodon admins are reloading apache or something similar
b3yond added the
good first issue
bug
labels 2019-06-10 09:49:24 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: b3yond/ticketfrei#62
No description provided.