PentestGPT: TypeError: can only concatenate str (not "tuple") to str

gostrolucky@ubuntu:/Users/gostrolucky/Downloads/PentestGPT$ python3 main.py --reasoning_model=gpt-4
- ChatGPT Sessions Initialized.
Please describe the penetration testing task in one line, including the target IP, task type, etc.
> Hello world
- Task information generated.

PentestGPT suggests you to do the following:
(None, None)
Traceback (most recent call last):
  File "/Users/gostrolucky/Downloads/PentestGPT/main.py", line 27, in <module>
    pentestGPTHandler.main()
  File "/Users/gostrolucky/Downloads/PentestGPT/utils/pentest_gpt.py", line 479, in main
    "PentestGPT", "PentestGPT suggests you to do the following: \n" + _response
TypeError: can only concatenate str (not "tuple") to str
gostrolucky@ubuntu:/Users/gostrolucky/Downloads/PentestGPT$ python3 --version
Python 3.10.7

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 19 (8 by maintainers)

Most upvoted comments

Emm this is strange. What I typically do is that after testing the cookie working correctly, I’ll copy it from the terminal and paste it into Python config directly. Note that during this process, refreshing the ChatGPT page will make the original cookie invalid. Please always use test_connection.py before running main.py to ensure the connection works. May I have your Browser version and OS version for reference? Will try to reproduce the issue first.