Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPT ERROR : Our systems have detected unusual activity from your device. Please refresh your browser and try again later #17

Open
MominIqbal-1234 opened this issue Apr 25, 2024 · 3 comments

Comments

@MominIqbal-1234
Copy link

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.'}

@baW01
Copy link

baW01 commented Apr 25, 2024

Same

@baW01
Copy link

baW01 commented Apr 25, 2024

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

@MominIqbal-1234
Copy link
Author

please explain how to solve this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants