cheran-senthil / cheran-senthil/TLE
Exception in task ProblemsetCacheUpdate
- Dominant language
- Python
- Stars
- 337
- Forks
- 234
- PR merge metrics
- No merged PRs in 30d
Description
After setting up the bot successfully using the given instructions, the bot was running but since the past few days it doesn't work
Upon running the run.sh file, I see the following log in the discord channel:
26-01-2021 12:18:13:WARNING:Task:Exception in task ProblemsetCacheUpdate, ignoring.
Traceback (most recent call last):
File "/home/ubuntu/TLE/tle/util/tasks.py", line 161, in _execute_func
await self.func(self.instance, arg)
File "/home/ubuntu/TLE/tle/cogs/cses.py", line 32, in _cache_data
await self._reload()
File "/home/ubuntu/TLE/tle/cogs/cses.py", line 40, in _reload
fast, short = await cses.get_problem_leaderboard(pid)
File "/home/ubuntu/TLE/tle/util/cses_scraper.py", line 30, in get_problem_leaderboard
tree = await _fetch(f'https://cses.fi/problemset/stats/%7Bnum%7D/%27)
File "/home/ubuntu/TLE/tle/util/cses_scraper.py", line 15, in _fetch
async with session.get(url) as response:
File "/home/ubuntu/.cache/pypoetry/virtualenvs/tle-OW8azPf2-py3.8/lib/python3.8/site-packages/aiohttp/client.py", line 1012, in aenter
self._resp = await self._coro
File "/home/ubuntu/.cache/pypoetry/virtualenvs/tle-OW8azPf2-py3.8/lib/python3.8/site-packages/aiohttp/client.py", line 504, in _request
await resp.start(conn)
File "/home/ubuntu/.cache/pypoetry/virtualenvs/tle-OW8azPf2-py3.8/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 847, in start
message, payload = await self._protocol.read() # type: ignore # noqa
File "/home/ubuntu/.cache/pypoetry/virtualenvs/tle-OW8azPf2-py3.8/lib/python3.8/site-packages/aiohttp/streams.py", line 591, in read
await self._waiter
aiohttp.client_exceptions.ServerDisconnectedError
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with tle/cogs/cses.py and tle/util/cses_scraper.py, especially _reload, get_problem_leaderboard, and _fetch, then reproduce the failure by running run.sh. The traceback shows the failure occurs while fetching the CSES leaderboard through aiohttp. Done means the ProblemsetCacheUpdate task completes without logging ServerDisconnectedError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100