Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- Logging error ---
- Traceback (most recent call last):
- File "/config/.local/lib/python3.10/site-packages/flask/app.py", line 2528, in wsgi_app
- response = self.full_dispatch_request()
- File "/config/.local/lib/python3.10/site-packages/flask/app.py", line 1825, in full_dispatch_request
- rv = self.handle_user_exception(e)
- File "/config/.local/lib/python3.10/site-packages/flask/app.py", line 1823, in full_dispatch_request
- rv = self.dispatch_request()
- File "/config/.local/lib/python3.10/site-packages/flask/app.py", line 1799, in dispatch_request
- return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
- File "/config/.local/lib/python3.10/site-packages/asgiref/sync.py", line 240, in __call__
- return call_result.result()
- File "/usr/lib/python3.10/concurrent/futures/_base.py", line 451, in result
- return self.__get_result()
- File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
- raise self._exception
- File "/config/.local/lib/python3.10/site-packages/asgiref/sync.py", line 306, in main_wrap
- result = await self.awaitable(*args, **kwargs)
- File "/config/workspace/discord-flask/api/api.py", line 42, in serverPost
- await sendMessage(channel, jsonData["embeds"])
- File "/config/workspace/discord-flask/api/api.py", line 32, in sendMessage
- await channelObj.send(embeds=message)
- File "/config/.local/lib/python3.10/site-packages/interactions/client/mixins/send.py", line 110, in send
- message_data = await self._send_http_request(message_payload, files=files or file)
- File "/config/.local/lib/python3.10/site-packages/interactions/models/discord/channel.py", line 247, in _send_http_request
- return await self._client.http.create_message(message_payload, self.id, files=files)
- File "/config/.local/lib/python3.10/site-packages/interactions/api/http/http_requests/messages.py", line 35, in create_message
- result = await self.request(
- File "/config/.local/lib/python3.10/site-packages/interactions/api/http/http_client.py", line 397, in request
- async with self.__session.request(route.method, route.url, **kwargs) as response:
- File "/config/.local/lib/python3.10/site-packages/aiohttp/client.py", line 1138, in __aenter__
- self._resp = await self._coro
- File "/config/.local/lib/python3.10/site-packages/aiohttp/client.py", line 466, in _request
- with timer:
- File "/config/.local/lib/python3.10/site-packages/aiohttp/helpers.py", line 701, in __enter__
- raise RuntimeError(
- RuntimeError: Timeout context manager should be used inside a task
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/lib/python3.10/logging/__init__.py", line 1103, in emit
- stream.write(msg + self.terminator)
- TypeError: a bytes-like object is required, not 'str'
- Call stack:
- File "/usr/lib/python3.10/threading.py", line 973, in _bootstrap
- self._bootstrap_inner()
- File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
- self.run()
- File "/usr/lib/python3.10/threading.py", line 953, in run
- self._target(*self._args, **self._kwargs)
- File "/usr/lib/python3.10/concurrent/futures/thread.py", line 83, in _worker
- work_item.run()
- File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
- result = self.fn(*self.args, **self.kwargs)
- File "/config/.local/lib/python3.10/site-packages/hypercorn/app_wrappers.py", line 104, in run_app
- for output in self.app(environ, start_response):
- File "/config/.local/lib/python3.10/site-packages/flask/app.py", line 2551, in __call__
- return self.wsgi_app(environ, start_response)
- File "/config/.local/lib/python3.10/site-packages/flask/app.py", line 2531, in wsgi_app
- response = self.handle_exception(e)
- File "/config/.local/lib/python3.10/site-packages/flask/app.py", line 1721, in handle_exception
- self.log_exception(exc_info)
- File "/config/.local/lib/python3.10/site-packages/flask/app.py", line 1744, in log_exception
- self.logger.error(
- Message: 'Exception on /post [POST]'
- Arguments: ()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement