PentestGPT throws strange error
shakil1819 opened this issue · comments
Describe the bug
Here is the output when i am executing pentesting
To Reproduce
Steps to reproduce the behavior:
1.pip install pentestgpt
2.export OPENAI_KEY='<mine>'
3.export CHATGPT_COOKIE='mine'
4.pentestgpt
Expected behavior
Expected to perfectly answer as the prompt passes on.
Version
Whether you're using API or cookies? = BOTH
Version = Latest
Can you provide the output for pentestgpt-connection
?
Quite a few have experienced this issue including myself, and we haven't found a fix. We've done some troubleshooting in the discord channel bugs-report.
Quite a few have experienced this issue including myself, and we haven't found a fix. We've done some troubleshooting in the discord channel bugs-report.
hi, maybe u copy this material from discord to this issues? pleese
im watch on the log file(chatgpt.log)
2023-10-16 12:09:15.192 | WARNING | pentestgpt.utils.APIs.chatgpt_api:_chat_completion:92 - Token size limit reached. The recent message is compressed
2023-10-16 12:09:15.193 | ERROR | pentestgpt.utils.APIs.chatgpt_api:_chat_completion:93 - Token size error; will retry with compressed message
2023-10-16 12:12:11.396 | WARNING | pentestgpt.utils.APIs.chatgpt_api:_chat_completion:83 - Rate limit reached. Waiting for 5 seconds
2023-10-16 12:12:11.396 | WARNING | pentestgpt.utils.APIs.chatgpt_api:_chat_completion:83 - Rate limit reached. Waiting for 5 seconds
2023-10-16 12:12:11.396 | WARNING | pentestgpt.utils.APIs.chatgpt_api:_chat_completion:83 - Rate limit reached. Waiting for 5 seconds
2023-10-16 12:12:11.396 | ERROR | pentestgpt.utils.APIs.chatgpt_api:_chat_completion:84 - Rate Limit Error:
2023-10-16 12:12:11.396 | ERROR | pentestgpt.utils.APIs.chatgpt_api:_chat_completion:84 - Rate Limit Error:
2023-10-16 12:12:11.396 | ERROR | pentestgpt.utils.APIs.chatgpt_api:_chat_completion:84 - Rate Limit Error:
2023-10-16 12:12:19.591 | ERROR | pentestgpt.utils.pentest_gpt:initialize:242 - You exceeded your current quota, please check your plan and billing details.
2023-10-16 12:12:19.591 | ERROR | pentestgpt.utils.pentest_gpt:initialize:242 - You exceeded your current quota, please check your plan and billing details.
2023-10-16 12:12:19.591 | ERROR | pentestgpt.utils.pentest_gpt:initialize:242 - You exceeded your current quota, please check your plan and billing details.
but im not understand why repo dont work, because online chat working not problem...
sorry for my english)
As mentioned in the debug info, this is because you have not linked a proper payment method to OpenAI API, or you have exceeded the quota.
I'll update the README to document this.