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

Topgg 'Error handling request' issue

Open Splashtair opened this issue 2 years ago • 1 comments

This issue tracker is ONLY used for reporting bugs with topggpy. Feel free to share your suggestions in the #api channel in our Discord server!

For help with general Python issues, use StackOverflow, our #development channel, or the Python Discord server.

Expected Behavior

Shouldn't post this error:

Error handling request
Traceback (most recent call last):
File "/root/Senpai/venv/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 314, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
File "aiohttp/_http_parser.pyx", line 546, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'invalid HTTP method'"

Current Behavior

Posts this error:

Error handling request
Traceback (most recent call last):
File "/root/Senpai/venv/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 314, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
File "aiohttp/_http_parser.pyx", line 546, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'invalid HTTP method'"

Development Environment

Python v3.8.10 Topggpy v1.4.0 OS is Linux

Steps to Reproduce

  1. Post your server count to top.gg
  2. Wait the X amount u set
  3. Error should post when posting server count

Context

My logs are spammed with this error and sometimes crashes it seems like

Possible Solution

Detailed Description

Possible Implementation

Splashtair avatar Mar 18 '22 02:03 Splashtair

Fun fact, no one figured out the cause (as far as I am aware, at least).

This Reddit post gets into the causes of this error, although it is weird that a random request (one that does not use an appropriate HTTP method) manages to reach web servers (yes, web servers) you, a Top.gg user, list in webhook URL settings. However, as a rule of thumb, such requests can be ignored.

Esmeray6 avatar Sep 24 '22 22:09 Esmeray6