Advertisement
Guest User

Untitled

a guest
Aug 4th, 2023
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.72 KB | None | 0 0
  1. 2023-08-04 16:40:49.759 | ERROR | src.bot_tools.decorators:_:35 -
  2. Traceback (most recent call last):
  3.  
  4. File "/Users/lifr0m/code/arbitrage/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 89, in _execute
  5. return self.cursor.execute(sql, params)
  6. │ │ │ │ └ (Int8(123131321),)
  7. │ │ │ └ 'SELECT "src_user"."tgid", "src_user"."min_profit", "src_user"."min_usd_size", "src_user"."min_profit_growth", "src_user"."on...
  8. │ │ └ <function Cursor.execute at 0x107bf8a60>
  9. │ └ <django.db.backends.postgresql.base.Cursor [closed] [ACTIVE] (host=123.123.123.123 user=123123123 database=123123) at 0x11ec...
  10. └ <django.db.backends.utils.CursorWrapper object at 0x11ef97fd0>
  11. File "/Users/lifr0m/code/arbitrage/venv/lib/python3.10/site-packages/psycopg/cursor.py", line 723, in execute
  12. raise ex.with_traceback(None)
  13.  
  14. psycopg.OperationalError: consuming input failed: Operation timed out
  15.  
  16.  
  17. The above exception was the direct cause of the following exception:
  18.  
  19.  
  20. Traceback (most recent call last):
  21.  
  22. File "/opt/homebrew/Cellar/python@3.10/3.10.12_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 196, in _run_module_as_main
  23. return _run_code(code, main_globals, None,
  24. │ │ └ {'__name__': '__main__', '__doc__': None, '__package__': 'src.signals_bot', '__loader__': <_frozen_importlib_external.SourceF...
  25. │ └ <code object <module> at 0x104cd6ad0, file "/Users/lifr0m/code/arbitrage/src/signals_bot/main.py", line 1>
  26. └ <function _run_code at 0x104ad79a0>
  27.  
  28. File "/opt/homebrew/Cellar/python@3.10/3.10.12_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 86, in _run_code
  29. exec(code, run_globals)
  30. │ └ {'__name__': '__main__', '__doc__': None, '__package__': 'src.signals_bot', '__loader__': <_frozen_importlib_external.SourceF...
  31. └ <code object <module> at 0x104cd6ad0, file "/Users/lifr0m/code/arbitrage/src/signals_bot/main.py", line 1>
  32.  
  33. File "/Users/lifr0m/code/arbitrage/src/signals_bot/main.py", line 44, in <module>
  34. loop.run_until_complete(
  35. │ └ <method 'run_until_complete' of 'uvloop.loop.Loop' objects>
  36. └ <uvloop.Loop running=True closed=False debug=False>
  37.  
  38. File "/Users/lifr0m/code/arbitrage/venv/lib/python3.10/site-packages/telethon/client/updates.py", line 543, in _dispatch_update
  39. await callback(event)
  40. │ └ <telethon.events.newmessage.NewMessage.Event object at 0x11ef96980>
  41. └ <function _ at 0x11ef851b0>
  42.  
  43. > File "/Users/lifr0m/code/arbitrage/src/bot_tools/decorators.py", line 33, in _
  44. await func(event)
  45. │ └ <telethon.events.newmessage.NewMessage.Event object at 0x11ef96980>
  46. └ <function _ at 0x11ef85090>
  47.  
  48. File "/Users/lifr0m/code/arbitrage/src/signals_bot/handlers.py", line 28, in _
  49. user = await db.get_user(event.sender_id)
  50. │ │ └ <telethon.events.newmessage.NewMessage.Event object at 0x11ef96980>
  51. │ └ <function get_user at 0x11ef84e50>
  52. └ <module 'src.signals_bot.db' from '/Users/lifr0m/code/arbitrage/src/signals_bot/db.py'>
  53.  
  54. File "/Users/lifr0m/code/arbitrage/src/signals_bot/db.py", line 7, in get_user
  55. return await User.objects.aget(tgid=tgid)
  56. │ │ └ 123123123
  57. │ └ <django.db.models.manager.ManagerDescriptor object at 0x1188c5cc0>
  58. └ <class 'src.models.User'>
  59.  
  60. File "/Users/lifr0m/code/arbitrage/venv/lib/python3.10/site-packages/django/db/models/query.py", line 649, in aget
  61. return await sync_to_async(self.get)(*args, **kwargs)
  62. │ │ │ │ └ {'tgid': 123123123}
  63. │ │ │ └ ()
  64. │ │ └ <function QuerySet.get at 0x1076ad360>
  65. │ └ <unprintable QuerySet object>
  66. └ <function sync_to_async at 0x106f656c0>
  67. File "/Users/lifr0m/code/arbitrage/venv/lib/python3.10/site-packages/asgiref/sync.py", line 479, in __call__
  68. ret: _R = await loop.run_in_executor(
  69. │ └ <method 'run_in_executor' of 'uvloop.loop.Loop' objects>
  70. └ <uvloop.Loop running=True closed=False debug=False>
  71.  
  72. File "/opt/homebrew/Cellar/python@3.10/3.10.12_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  73. result = self.fn(*self.args, **self.kwargs)
  74. │ │ └ None
  75. │ └ None
  76. └ None
  77.  
  78. File "/Users/lifr0m/code/arbitrage/venv/lib/python3.10/site-packages/asgiref/sync.py", line 538, in thread_handler
  79. return func(*args, **kwargs)
  80. │ │ └ {}
  81. │ └ <unprintable tuple object>
  82. └ <built-in method run of _contextvars.Context object at 0x11e7be540>
  83. File "/Users/lifr0m/code/arbitrage/venv/lib/python3.10/site-packages/django/db/models/query.py", line 633, in get
  84. num = len(clone)
  85. └ <unprintable QuerySet object>
  86. File "/Users/lifr0m/code/arbitrage/venv/lib/python3.10/site-packages/django/db/models/query.py", line 380, in __len__
  87. self._fetch_all()
  88. │ └ <function QuerySet._fetch_all at 0x1076afd90>
  89. └ <unprintable QuerySet object>
  90. File "/Users/lifr0m/code/arbitrage/venv/lib/python3.10/site-packages/django/db/models/query.py", line 1881, in _fetch_all
  91. self._result_cache = list(self._iterable_class(self))
  92. │ │ │ │ └ <unprintable QuerySet object>
  93. │ │ │ └ <class 'django.db.models.query.ModelIterable'>
  94. │ │ └ <unprintable QuerySet object>
  95. │ └ None
  96. └ <unprintable QuerySet object>
  97. File "/Users/lifr0m/code/arbitrage/venv/lib/python3.10/site-packages/django/db/models/query.py", line 91, in __iter__
  98. results = compiler.execute_sql(
  99. │ └ <function SQLCompiler.execute_sql at 0x11ef87be0>
  100. └ <SQLCompiler model=User connection=<DatabaseWrapper vendor='postgresql' alias='default'> using='default'>
  101. File "/Users/lifr0m/code/arbitrage/venv/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1562, in execute_sql
  102. cursor.execute(sql, params)
  103. │ │ │ └ (Int8(123123123),)
  104. │ │ └ 'SELECT "src_user"."tgid", "src_user"."min_profit", "src_user"."min_usd_size", "src_user"."min_profit_growth", "src_user"."on...
  105. │ └ <function CursorWrapper.execute at 0x1074d6dd0>
  106. └ <django.db.backends.utils.CursorWrapper object at 0x11ef97fd0>
  107. File "/Users/lifr0m/code/arbitrage/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 67, in execute
  108. return self._execute_with_wrappers(
  109. │ └ <function CursorWrapper._execute_with_wrappers at 0x1074d6ef0>
  110. └ <django.db.backends.utils.CursorWrapper object at 0x11ef97fd0>
  111. File "/Users/lifr0m/code/arbitrage/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
  112. return executor(sql, params, many, context)
  113. │ │ │ │ └ {'connection': <DatabaseWrapper vendor='postgresql' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper objec...
  114. │ │ │ └ False
  115. │ │ └ (Int8(123123123),)
  116. │ └ 'SELECT "src_user"."tgid", "src_user"."min_profit", "src_user"."min_usd_size", "src_user"."min_profit_growth", "src_user"."on...
  117. └ <bound method CursorWrapper._execute of <django.db.backends.utils.CursorWrapper object at 0x11ef97fd0>>
  118. File "/Users/lifr0m/code/arbitrage/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 84, in _execute
  119. with self.db.wrap_database_errors:
  120. │ │ └ <django.db.utils.DatabaseErrorWrapper object at 0x11ef94460>
  121. │ └ <DatabaseWrapper vendor='postgresql' alias='default'>
  122. └ <django.db.backends.utils.CursorWrapper object at 0x11ef97fd0>
  123. File "/Users/lifr0m/code/arbitrage/venv/lib/python3.10/site-packages/django/db/utils.py", line 91, in __exit__
  124. raise dj_exc_value.with_traceback(traceback) from exc_value
  125. │ │ │ └ OperationalError('consuming input failed: Operation timed out')
  126. │ │ └ <traceback object at 0x11effd140>
  127. │ └ <method 'with_traceback' of 'BaseException' objects>
  128. └ OperationalError('consuming input failed: Operation timed out')
  129. File "/Users/lifr0m/code/arbitrage/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 89, in _execute
  130. return self.cursor.execute(sql, params)
  131. │ │ │ │ └ (Int8(123123123),)
  132. │ │ │ └ 'SELECT "src_user"."tgid", "src_user"."min_profit", "src_user"."min_usd_size", "src_user"."min_profit_growth", "src_user"."on...
  133. │ │ └ <function Cursor.execute at 0x107bf8a60>
  134. │ └ <django.db.backends.postgresql.base.Cursor [closed] [ACTIVE] (host=123.123.123.123 user=12312123 database=123123123) at 0x11ec...
  135. └ <django.db.backends.utils.CursorWrapper object at 0x11ef97fd0>
  136. File "/Users/lifr0m/code/arbitrage/venv/lib/python3.10/site-packages/psycopg/cursor.py", line 723, in execute
  137. raise ex.with_traceback(None)
  138.  
  139. django.db.utils.OperationalError: consuming input failed: Operation timed out
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement