Closed Beenraf closed 1 year ago
Just letting you know, if that is your API key, make sure to blur it out or remove it. Since anyone can now take it and use it (you may want to make a new one and delete it IF that is a real api key). You don't want anyone to be able to use it and charge your account.
I updated your comment @Beenraf Please be careful not to share your OpenAI API key.
Also, I updated one of the latest version. Could you please try with python3 test_connection.py
first?
I know its not my api i did some modifications on it
I updated your comment @Beenraf
Please be careful not to share your OpenAI API key.
Also, I updated one of the latest version. Could you please try with
python3 test_connection.py
first?
The same error message
May I know the command you execute before the error? Seems like you pass non-standard encoding string into the cookie.
cd PentestGPT-main pip install -r requirements.txt cp config/chatgpt_config_sample.py config/chatgpt_config.py then I copied the cookies and the agent in config/chatgpt_config.py finally : python3 test_connection.py
I see. Most likely, your browser language is not English and you copied some non-english chars. May you copy the full cookie here so I can debug it?
cf_clearance=n2NS1LjAzEr2DEhMwQTs6t38kEnqQ9k3V2tGY5f.hs0-1682421408-0-1-cb5f4e7c.34091c9c.9c5e119c-250; intercom-session-dgkjq2bp=RUpCUWVhZWYyTS9JZ1FtWWR5UkRiM2dzWEIwTUlBekJPa0gvV2h4Nm9uQmNlQTNsRnIxa0pEbHFrdGRMb2dydC0tdjdhTGpmZHdnVEVqUFQ5cWhOWStaUT09--6b937f4b37cceaffaed57d26144ae4a05d11cb81; intercom-device-id-dgkjq2bp=1d1afb97-d54a-45dd-87b0-581b29b1738a; _ga_9YTZJE58M9=GS1.1.1682811639.1.0.1682811639.0.0.0; _ga=GA1.1.605512745.1682811639; Secure-next-auth.session-token=eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R…f2461d569cabfeef0fad6708df2a19139c7112ba3b564c; Secure-next-auth.callback-url=https%3A%2F%2Fchat.openai.com; _cfuvid=sbh5cj1ptyfl42mzIyVHHNe41LJXutf0c3SwknXbuoA-1682870211015-0-604800000; cf_clearance=ZmeDL7S44oSG2EqSQexcocZ9OQ79Sg86jdk43KTYze4-1682954378-0-1-c9ddabb0.e7b0dab8.9edcf450-250; __cf_bm=lBp38QHpGcq4ZlsPAUujiBuv.V4Q5Ukw74KCr1EXNOE-1682960046-0-Aat4ehkB+1P2HwoIBql2BFXlTgFGXxDRFbkws7CGRvpGjk4S+yNUjswX4rvx2FBvAnbWZOuu99Jm6iOW5U2Ba8kRB0FWK5HMK44GEYVZ6zswtT0o8809VLYQ8gb3+BtDZdyy4zKdSPfge0DMy0AIvNU=
I think the problem might be the same as this one: https://stackoverflow.com/questions/70616716/python-requests-unicode-encode-error-while-attaching-cookies Will reply you in this ticket once I find the solution.
I updated an installation video at https://youtu.be/IbUcj0F9EBc. You may try to follow the steps and check if the problem persists. Closing this issue for now.
I follow every step in README but when I want to test it this Error occurred:
here is