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

Crash related to coroutines #2

Open
jamiestepanian opened this issue Apr 25, 2020 · 0 comments
Open

Crash related to coroutines #2

jamiestepanian opened this issue Apr 25, 2020 · 0 comments

Comments

@jamiestepanian
Copy link

I'm getting the following crash after the json printout (-j flag):

/home/vec/pyfido/pyfido/client.py:317: RuntimeWarning: coroutine 'ClientSession.close' was neve
  self._session.close()
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7efcadfcf7b8>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x7efcaf0f7f50>, 203495.025617
connector: <aiohttp.connector.TCPConnector object at 0x7efcadfcf7f0>

with no json flag, I get this:

Traceback (most recent call last):
  File "/usr/lib/python3.5/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/vec/pyfido/pyfido/__main__.py", line 126, in <module>
    sys.exit(main())
  File "/home/vec/pyfido/pyfido/__main__.py", line 121, in main
    _format_output(args.number, client.get_data())
  File "/home/vec/pyfido/pyfido/__main__.py", line 84, in _format_output
    _print_number(number_data)
  File "/home/vec/pyfido/pyfido/__main__.py", line 51, in _print_number
    print(output.format(d=data))
KeyError: 'talk_limit'
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f6b6fe5d748>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x7f6b701ae938>, 203743.753911494)]', '[(<aiohttp.client_proto.ResponseHandler object at 0x7f6b70fc4f50>, 203739.526568649)]']
connector: <aiohttp.connector.TCPConnector object at 0x7f6b6fe5d780>

I tried debugging it, but my knowledge of python coroutines is lacking.
I'm using a python 3.5 virtualenv (as instructed). Running from Linux.

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