Advertisement
LawMixer

ss

Jul 2nd, 2023
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.06 KB | None | 0 0
  1. --- Logging error ---
  2. Traceback (most recent call last):
  3. File "/config/.local/lib/python3.10/site-packages/flask/app.py", line 2528, in wsgi_app
  4. response = self.full_dispatch_request()
  5. File "/config/.local/lib/python3.10/site-packages/flask/app.py", line 1825, in full_dispatch_request
  6. rv = self.handle_user_exception(e)
  7. File "/config/.local/lib/python3.10/site-packages/flask/app.py", line 1823, in full_dispatch_request
  8. rv = self.dispatch_request()
  9. File "/config/.local/lib/python3.10/site-packages/flask/app.py", line 1799, in dispatch_request
  10. return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  11. File "/config/.local/lib/python3.10/site-packages/asgiref/sync.py", line 240, in __call__
  12. return call_result.result()
  13. File "/usr/lib/python3.10/concurrent/futures/_base.py", line 451, in result
  14. return self.__get_result()
  15. File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
  16. raise self._exception
  17. File "/config/.local/lib/python3.10/site-packages/asgiref/sync.py", line 306, in main_wrap
  18. result = await self.awaitable(*args, **kwargs)
  19. File "/config/workspace/discord-flask/api/api.py", line 42, in serverPost
  20. await sendMessage(channel, jsonData["embeds"])
  21. File "/config/workspace/discord-flask/api/api.py", line 32, in sendMessage
  22. await channelObj.send(embeds=message)
  23. File "/config/.local/lib/python3.10/site-packages/interactions/client/mixins/send.py", line 110, in send
  24. message_data = await self._send_http_request(message_payload, files=files or file)
  25. File "/config/.local/lib/python3.10/site-packages/interactions/models/discord/channel.py", line 247, in _send_http_request
  26. return await self._client.http.create_message(message_payload, self.id, files=files)
  27. File "/config/.local/lib/python3.10/site-packages/interactions/api/http/http_requests/messages.py", line 35, in create_message
  28. result = await self.request(
  29. File "/config/.local/lib/python3.10/site-packages/interactions/api/http/http_client.py", line 397, in request
  30. async with self.__session.request(route.method, route.url, **kwargs) as response:
  31. File "/config/.local/lib/python3.10/site-packages/aiohttp/client.py", line 1138, in __aenter__
  32. self._resp = await self._coro
  33. File "/config/.local/lib/python3.10/site-packages/aiohttp/client.py", line 466, in _request
  34. with timer:
  35. File "/config/.local/lib/python3.10/site-packages/aiohttp/helpers.py", line 701, in __enter__
  36. raise RuntimeError(
  37. RuntimeError: Timeout context manager should be used inside a task
  38.  
  39. During handling of the above exception, another exception occurred:
  40.  
  41. Traceback (most recent call last):
  42. File "/usr/lib/python3.10/logging/__init__.py", line 1103, in emit
  43. stream.write(msg + self.terminator)
  44. TypeError: a bytes-like object is required, not 'str'
  45. Call stack:
  46. File "/usr/lib/python3.10/threading.py", line 973, in _bootstrap
  47. self._bootstrap_inner()
  48. File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
  49. self.run()
  50. File "/usr/lib/python3.10/threading.py", line 953, in run
  51. self._target(*self._args, **self._kwargs)
  52. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 83, in _worker
  53. work_item.run()
  54. File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
  55. result = self.fn(*self.args, **self.kwargs)
  56. File "/config/.local/lib/python3.10/site-packages/hypercorn/app_wrappers.py", line 104, in run_app
  57. for output in self.app(environ, start_response):
  58. File "/config/.local/lib/python3.10/site-packages/flask/app.py", line 2551, in __call__
  59. return self.wsgi_app(environ, start_response)
  60. File "/config/.local/lib/python3.10/site-packages/flask/app.py", line 2531, in wsgi_app
  61. response = self.handle_exception(e)
  62. File "/config/.local/lib/python3.10/site-packages/flask/app.py", line 1721, in handle_exception
  63. self.log_exception(exc_info)
  64. File "/config/.local/lib/python3.10/site-packages/flask/app.py", line 1744, in log_exception
  65. self.logger.error(
  66. Message: 'Exception on /post [POST]'
  67. Arguments: ()
  68.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement