初始化报错,能看一下吗
An exception was raised while handling an update
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/revChatGPT/
revChatGPT.py", line 339, in refresh_session
self.config["Authorization"] = response.json()["accessToken"]
KeyError: 'accessToken'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/ChatGPTBot/
main.py", line 124, in start
chatbot = Chatbot(config, conversation_id=None, request_timeout=300)
File "/usr/local/lib/python3.10/dist-packages/revChatGPT/
revChatGPT.py", line 116, in __init__
self.refresh_session()
File "/usr/local/lib/python3.10/dist-packages/revChatGPT/
revChatGPT.py", line 355, in refresh_session
raise Exception("Failed to refresh session") from exc
Exception: Failed to refresh session
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/.local/lib/python3.10/site-packages/python_telegram_bot-20.0a6-py3.10.egg/telegram/ext/
_application.py", line 1057, in process_update
await coroutine
File "/root/.local/lib/python3.10/site-packages/python_telegram_bot-20.0a6-py3.10.egg/telegram/ext/
_handler.py", line 143, in handle_update
return await self.callback(update, context)
File "/root/ChatGPTBot/
main.py", line 128, in start
await update.message.reply_text(emojize(":sweat_drops:初始化失败! 原因: `{}` ".format(e)),
File "/root/.local/lib/python3.10/site-packages/python_telegram_bot-20.0a6-py3.10.egg/telegram/
_message.py", line 875, in reply_text
return await self.get_bot().send_message(
File "/root/.local/lib/python3.10/site-packages/python_telegram_bot-20.0a6-py3.10.egg/telegram/ext/
_extbot.py", line 2482, in send_message
return await super().send_message(
File "/root/.local/lib/python3.10/site-packages/python_telegram_bot-20.0a6-py3.10.egg/telegram/
_bot.py", line 313, in decorator
result = await func(*args, **kwargs) # skipcq: PYL-E1102
File "/root/.local/lib/python3.10/site-packages/python_telegram_bot-20.0a6-py3.10.egg/telegram/
_bot.py", line 734, in send_message
return await self._send_message( # type: ignore[return-value]
File "/root/.local/lib/python3.10/site-packages/python_telegram_bot-20.0a6-py3.10.egg/telegram/ext/
_extbot.py", line 485, in _send_message
result = await super()._send_message(
File "/root/.local/lib/python3.10/site-packages/python_telegram_bot-20.0a6-py3.10.egg/telegram/
_bot.py", line 486, in _send_message
result = await self._post(
File "/root/.local/lib/python3.10/site-packages/python_telegram_bot-20.0a6-py3.10.egg/telegram/
_bot.py", line 395, in _post
return await self._do_post(
File "/root/.local/lib/python3.10/site-packages/python_telegram_bot-20.0a6-py3.10.egg/telegram/ext/
_extbot.py", line 306, in _do_post
return await super()._do_post(
File "/root/.local/lib/python3.10/site-packages/python_telegram_bot-20.0a6-py3.10.egg/telegram/
_bot.py", line 426, in _do_post
return await
request.post(
File "/root/.local/lib/python3.10/site-packages/python_telegram_bot-20.0a6-py3.10.egg/telegram/request/
_baserequest.py", line 167, in post
result = await self._request_wrapper(
File "/root/.local/lib/python3.10/site-packages/python_telegram_bot-20.0a6-py3.10.egg/telegram/request/
_baserequest.py", line 330, in _request_wrapper
raise BadRequest(message)
telegram.error.BadRequest: Can't parse entities: can't find end of italic entity at byte offset 6