Open MominIqbal-1234 opened 2 months ago
Same
I see same error when i use 'ask' when i use 'chat' i see
Traceback (most recent call last):
File "pythonProject\.venv\main.py", line 7, in <module>
response = bot.chat("hello")
File "pythonProject\.venv\lib\site-packages\WebChatGPT\main.py", line 268, in chat
return for_stream() if stream else for_non_stream()
File "pythonProject\.venv\lib\site-packages\WebChatGPT\main.py", line 266, in for_non_stream
return utils.get_message(resp)
File "pythonProject\.venv\lib\site-packages\WebChatGPT\utils.py", line 272, in get_message
return response["message"]["content"]["parts"][0]
TypeError: 'NoneType' object is not subscriptable
please explain how to solve this
Traceback (most recent call last): File "/workspaces/WebChatGPT/main.py", line 5, in
response = bot.chat('')
File "/workspaces/WebChatGPT/WebChatGPT/main.py", line 266, in chat
return for_stream() if stream else for_non_stream()
File "/workspaces/WebChatGPT/WebChatGPT/main.py", line 264, in for_non_stream
return utils.get_message(resp)
File "/workspaces/WebChatGPT/WebChatGPT/utils.py", line 273, in get_message
return response["message"]["content"]["parts"][0]
TypeError: 'NoneType' object is not subscriptable
retutn this error then i print the response so print this {'message': None, 'conversation_id': 'dced29a9-80c8-4d4b-a1fc-e769ea600740', 'error': 'Our systems have detected unusual activity from your device. Please refresh your browser and try again later.'}