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

try to run but its giving this error below #2

Open
cryptobrothers1980 opened this issue Jul 1, 2021 · 0 comments
Open

try to run but its giving this error below #2

cryptobrothers1980 opened this issue Jul 1, 2021 · 0 comments

Comments

@cryptobrothers1980
Copy link

Traceback (most recent call last):
File "C:\Users\hp\testbot_init_.py", line 246, in
asyncio.run(main())
File "C:\Users\hp\AppData\Local\Programs\Python\Python39\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\hp\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete
return future.result()
File "C:\Users\hp\testbot_init_.py", line 232, in main
user = await GetUser.loginRedditUser(input("Username: ").strip(), input("Password: "))
File "C:\Users\hp\testbot_init_.py", line 171, in loginRedditUser
return User(s, un, await GetUser.getAuth(s))
File "C:\Users\hp\testbot_init_.py", line 101, in getAuth
authorization = "Bearer " + json.loads(b64decode("ey" + cookies["d2_token"].value.split(".ey")[-1]))["accessToken"]
KeyError: 'd2_token'
Exception ignored in: <function _ProactorBasePipeTransport.del at 0x000001404484B820>
Traceback (most recent call last):
File "C:\Users\hp\AppData\Local\Programs\Python\Python39\lib\asyncio\proactor_events.py", line 116, in del
self.close()
File "C:\Users\hp\AppData\Local\Programs\Python\Python39\lib\asyncio\proactor_events.py", line 108, in close
self._loop.call_soon(self._call_connection_lost, None)
File "C:\Users\hp\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 746, in call_soon
self._check_closed()
File "C:\Users\hp\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 510, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x00000140464F9280>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant