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

Events and funding bugs #654

Open
StephanAkkerman opened this issue Sep 11, 2024 · 0 comments
Open

Events and funding bugs #654

StephanAkkerman opened this issue Sep 11, 2024 · 0 comments
Labels
Bug 🐛 Something isn't working Difficulty: Medium 😐 This issue can be solved, but a decent amount of lines need to be changed Priority: High 🥇 Assign this label if this issue is VERY important or often used

Comments

@StephanAkkerman
Copy link
Owner

08/09/2024 10:59:36 - ERROR - Error in post_events
Traceback (most recent call last):
File "/home/akkie100/fintwit-bot/src/util/disc.py", line 17, in wrapper
return await func(*args, **kwargs)
File "/home/akkie100/fintwit-bot/src/cogs/loops/events.py", line 50, in post_events
df = await get_events()
File "/home/akkie100/fintwit-bot/src/api/investing.py", line 38, in get_events
root = fromstring(req["data"])
KeyError: 'data'

Loop thread traceback (most recent call last):
File "/home/akkie100/fintwit-bot/src/main.py", line 177, in
bot.run(token)
File "/home/akkie100/.local/lib/python3.9/site-packages/discord/client.py", line 765, in run
loop.run_forever()
File "/usr/lib/python3.9/asyncio/base_events.py", line 596, in run_forever
self._run_once()
File "/usr/lib/python3.9/asyncio/base_events.py", line 1890, in _run_once
handle._run()
File "/usr/lib/python3.9/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/home/akkie100/.local/lib/python3.9/site-packages/discord/ext/tasks/init.py", line 169, in _loop
await self.coro(*args, **kwargs)
File "/home/akkie100/fintwit-bot/src/util/disc.py", line 17, in wrapper
return await func(*args, **kwargs)
File "/home/akkie100/fintwit-bot/src/cogs/loops/liquidations.py", line 47, in post_liquidations
await liquidations_chart(file_name)
File "/home/akkie100/fintwit-bot/src/cogs/loops/liquidations.py", line 73, in liquidations_chart
new_data = get_new_data(coin, market=market)
File "/home/akkie100/fintwit-bot/src/api/binance.py", line 267, in get_new_data
existing_files = get_existing_files()
File "/home/akkie100/fintwit-bot/src/api/binance.py", line 194, in get_existing_files
response = requests.get(
File "/home/akkie100/.local/lib/python3.9/site-packages/requests/api.py", line 73, in get
return request("get", url, params=params, **kwargs)
File "/home/akkie100/.local/lib/python3.9/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/home/akkie100/.local/lib/python3.9/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/home/akkie100/.local/lib/python3.9/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/home/akkie100/.local/lib/python3.9/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 440, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.9/http/client.py", line 1347, in getresponse
response.begin()
File "/usr/lib/python3.9/http/client.py", line 307, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.9/http/client.py", line 268, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.9/socket.py", line 704, in readinto
return self._sock.recv_into(b)
File "/usr/lib/python3.9/ssl.py", line 1241, in recv_into
return self.read(nbytes, buffer)
File "/usr/lib/python3.9/ssl.py", line 1099, in read
return self._sslobj.read(len, buffer)

Loop thread traceback (most recent call last):
File "/home/akkie100/fintwit-bot/src/main.py", line 177, in
bot.run(token)
File "/home/akkie100/.local/lib/python3.9/site-packages/discord/client.py", line 765, in run
loop.run_forever()
File "/usr/lib/python3.9/asyncio/base_events.py", line 596, in run_forever
self._run_once()
File "/usr/lib/python3.9/asyncio/base_events.py", line 1890, in _run_once
handle._run()
File "/usr/lib/python3.9/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/home/akkie100/.local/lib/python3.9/site-packages/discord/ext/tasks/init.py", line 169, in _loop
await self.coro(*args, **kwargs)
File "/home/akkie100/fintwit-bot/src/util/disc.py", line 17, in wrapper
return await func(*args, **kwargs)
File "/home/akkie100/fintwit-bot/src/cogs/loops/funding_heatmap.py", line 51, in post_heatmap
df = await load_funding_rate_data(
File "/home/akkie100/fintwit-bot/src/cogs/loops/funding_heatmap.py", line 124, in load_funding_rate_data
b = BinanceClient()
File "/home/akkie100/fintwit-bot/src/api/binance.py", line 46, in init
main_page_response = requests.get(
File "/home/akkie100/.local/lib/python3.9/site-packages/requests/api.py", line 73, in get
return request("get", url, params=params, **kwargs)
File "/home/akkie100/.local/lib/python3.9/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/home/akkie100/.local/lib/python3.9/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/home/akkie100/.local/lib/python3.9/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/home/akkie100/.local/lib/python3.9/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 440, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.9/http/client.py", line 1347, in getresponse
response.begin()
File "/usr/lib/python3.9/http/client.py", line 307, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.9/http/client.py", line 268, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.9/socket.py", line 704, in readinto
return self._sock.recv_into(b)
File "/usr/lib/python3.9/ssl.py", line 1241, in recv_into
return self.read(nbytes, buffer)
File "/usr/lib/python3.9/ssl.py", line 1099, in read
return self._sslobj.read(len, buffer)

@StephanAkkerman StephanAkkerman added Bug 🐛 Something isn't working Priority: High 🥇 Assign this label if this issue is VERY important or often used Difficulty: Medium 😐 This issue can be solved, but a decent amount of lines need to be changed labels Sep 11, 2024
@StephanAkkerman StephanAkkerman changed the title Bugs Events and funding bugs Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐛 Something isn't working Difficulty: Medium 😐 This issue can be solved, but a decent amount of lines need to be changed Priority: High 🥇 Assign this label if this issue is VERY important or often used
Projects
None yet
Development

No branches or pull requests

1 participant