Closed a-huk closed 1 year ago
Hi, this bug can be fixed by installing the correct version of the dependencies.
Run the following commands:
pip uninstall undetected-chromedriver -y
pip uninstall selenium -y
pip install undetected-chromedriver==3.4.5
pip install selenium==4.9.1
Next version will have the correct versions specified. Let me know if this fixes your issue.
Description
I am running a simple example: see code section I see the chromium window open, ask the question, even the answer is output, but then it fails while trying to get the conversation id as it does not find any log performance.
Steps to Reproduce
Please provide clear steps to reproduce the issue you're facing.
Code used
Error Message or Traceback
`Traceback (most recent call last): File "/home/hukad/Downloads/pyChatGPT/../test_ai.py", line 5, in
resp = api.send_message('Hello, world!')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hukad/venv/lib/python3.11/site-packages/UnlimitedGPT/UnlimitedGPT.py", line 634, in send_message
self._get_conversation_id()
File "/home/hukad/venv/lib/python3.11/site-packages/UnlimitedGPT/UnlimitedGPT.py", line 351, in _get_conversation_id
logs_raw = self.driver.get_log("performance")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hukad/venv/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 1027, in get_log
return self.execute(Command.GET_LOG, {"type": log_type})["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hukad/venv/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 346, in execute
self.error_handler.check_response(response)
File "/home/hukad/venv/lib/python3.11/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.InvalidArgumentException: Message: invalid argument: log type 'performance' not found
(Session info: chrome=114.0.5735.133)
Stacktrace:
0 0x559af30db4e3
1 0x559af2e0ac76
2 0x559af2e74b69
3 0x559af2e65fd8
4 0x559af2e3b2dd
5 0x559af2e3c34e
6 0x559af309b3e4
7 0x559af309f3d7
8 0x559af30a9b20
9 0x559af30a0023
10 0x559af306e1aa
11 0x559af30c46b8
12 0x559af30c4847
13 0x559af30d4243
14 0x7f04662dcfd4`
Environment Information
Please provide details about your environment:
Expected Behavior
Correct output