Giter VIP home page Giter VIP logo

betsy-middleware's Issues

Error feedback when the redis connection fails

It can be difficult to understand that it's redis missing:

(! 2034)-> ./venv/bin/python main.py --node-url [::1]:55000 --debug
INFO:aiohttp.server:Opening redis connection
DEBUG:aioredis:Creating tcp connection to ('localhost', 6379)
DEBUG:aioredis:Closed 0 connection(s)
Traceback (most recent call last):
  File "main.py", line 364, in <module>
    main()
  File "main.py", line 351, in main
    asyncio.get_event_loop().run_until_complete(start())
  File "uvloop/loop.pyx", line 1451, in uvloop.loop.Loop.run_until_complete
  File "main.py", line 344, in start
    await runner.setup()
  File "/home/glawless/nano_ws/betsy-middleware/venv/lib/python3.6/site-packages/aiohttp/web_runner.py", line 203, in setup
    self._server = await self._make_server()
  File "/home/glawless/nano_ws/betsy-middleware/venv/lib/python3.6/site-packages/aiohttp/web_runner.py", line 302, in _make_server
    await self._app.startup()
  File "/home/glawless/nano_ws/betsy-middleware/venv/lib/python3.6/site-packages/aiohttp/web_app.py", line 389, in startup
    await self.on_startup.send(self)
  File "/home/glawless/nano_ws/betsy-middleware/venv/lib/python3.6/site-packages/aiohttp/signals.py", line 34, in send
    await receiver(*args, **kwargs)  # type: ignore
  File "main.py", line 301, in open_redis
    db=1, encoding='utf-8', minsize=2, maxsize=50)
  File "/home/glawless/nano_ws/betsy-middleware/venv/lib/python3.6/site-packages/aioredis/commands/__init__.py", line 201, in create_redis_pool
    loop=loop)
  File "/home/glawless/nano_ws/betsy-middleware/venv/lib/python3.6/site-packages/aioredis/pool.py", line 56, in create_pool
    await pool._fill_free(override_min=False)
  File "/home/glawless/nano_ws/betsy-middleware/venv/lib/python3.6/site-packages/aioredis/pool.py", line 388, in _fill_free
    conn = await self._create_new_connection(self._address)
  File "/home/glawless/nano_ws/betsy-middleware/venv/lib/python3.6/site-packages/aioredis/connection.py", line 108, in create_connection
    timeout, loop=loop)
  File "/usr/lib/python3.6/asyncio/tasks.py", line 339, in wait_for
    return (yield from fut)
  File "/home/glawless/nano_ws/betsy-middleware/venv/lib/python3.6/site-packages/aioredis/stream.py", line 19, in open_connection
    lambda: protocol, host, port, **kwds)
  File "uvloop/loop.pyx", line 1904, in create_connection
  File "uvloop/loop.pyx", line 1883, in uvloop.loop.Loop.create_connection
ConnectionRefusedError: [Errno 111] Connection refused

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.