Skip to content

Example no more working

python3 request_data.py 
Creating a client session outside of coroutine
client_session: <aiohttp.client.ClientSession object at 0x7f4db70bc588>
Traceback (most recent call last):
  File "request_data.py", line 47, in <module>
    asyncio.get_event_loop().run_until_complete(main())
  File "/usr/lib64/python3.5/asyncio/base_events.py", line 387, in run_until_complete
    return future.result()
  File "/usr/lib64/python3.5/asyncio/futures.py", line 274, in result
    raise self._exception
  File "/usr/lib64/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "request_data.py", line 28, in main
    response = await bma.node.summary(connection)
  File "/usr/lib/python3.5/site-packages/duniterpy/api/bma/node.py", line 55, in summary
    r = await client.requests_get('/summary')
  File "/usr/lib/python3.5/site-packages/duniterpy/api/bma/api.py", line 153, in requests_get
    logging.debug("Request : {0}".format(self.reverse_url(self.connection_handler.http_scheme, path)))
AttributeError: 'generator' object has no attribute 'http_scheme'
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information