IntelligenzaArtificiale / Free-Auto-GPT

Free Auto GPT with NO paids API is a repository that offers a simple version of Auto GPT, an autonomous AI agent capable of performing tasks independently. Unlike other versions, our implementation does not rely on any paid OpenAI API, making it accessible to anyone.
MIT License
2.44k stars 383 forks source link

SSL: CERTIFICATE_VERIFY_FAILED #43

Closed joseph6377 closed 1 year ago

joseph6377 commented 1 year ago

Getting below error URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)>

IntelligenzaArtificiale commented 1 year ago

thanks for opening the issue we can have more details. like a screenshot of the full error ?

joseph6377 commented 1 year ago

Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 1348, in do_open h.request(req.get_method(), req.selector, req.data, headers, File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1283, in request self._send_request(method, url, body, headers, encode_chunked) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1329, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1278, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1038, in _send_output self.send(msg) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 976, in send self.connect() File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1455, in connect self.sock = self._context.wrap_socket(self.sock, File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ssl.py", line 513, in wrap_socket return self.sslsocket_class._create( File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ssl.py", line 1071, in _create self.do_handshake() File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ssl.py", line 1342, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/josephti/Documents/Free-AUTO-GPT-with-NO-API/OtherAgent/customAgent.py", line 99, in zero_shot_agent.run(prompt) File "/Users/josephti/Documents/Free-AUTO-GPT-with-NO-API/venv/lib/python3.10/site-packages/langchain/chains/base.py", line 238, in run return self(args[0], callbacks=callbacks)[self.output_keys[0]] File "/Users/josephti/Documents/Free-AUTO-GPT-with-NO-API/venv/lib/python3.10/site-packages/langchain/chains/base.py", line 142, in call raise e File "/Users/josephti/Documents/Free-AUTO-GPT-with-NO-API/venv/lib/python3.10/site-packages/langchain/chains/base.py", line 136, in call self._call(inputs, run_manager=run_manager) File "/Users/josephti/Documents/Free-AUTO-GPT-with-NO-API/venv/lib/python3.10/site-packages/langchain/agents/agent.py", line 855, in _call next_step_output = self._take_next_step( File "/Users/josephti/Documents/Free-AUTO-GPT-with-NO-API/venv/lib/python3.10/site-packages/langchain/agents/agent.py", line 723, in _take_next_step output = self.agent.plan( File "/Users/josephti/Documents/Free-AUTO-GPT-with-NO-API/venv/lib/python3.10/site-packages/langchain/agents/agent.py", line 423, in plan full_output = self.llm_chain.predict(callbacks=callbacks, *full_inputs) File "/Users/josephti/Documents/Free-AUTO-GPT-with-NO-API/venv/lib/python3.10/site-packages/langchain/chains/llm.py", line 213, in predict return self(kwargs, callbacks=callbacks)[self.output_key] File "/Users/josephti/Documents/Free-AUTO-GPT-with-NO-API/venv/lib/python3.10/site-packages/langchain/chains/base.py", line 142, in call raise e File "/Users/josephti/Documents/Free-AUTO-GPT-with-NO-API/venv/lib/python3.10/site-packages/langchain/chains/base.py", line 136, in call self._call(inputs, run_manager=run_manager) File "/Users/josephti/Documents/Free-AUTO-GPT-with-NO-API/venv/lib/python3.10/site-packages/langchain/chains/llm.py", line 69, in _call response = self.generate([inputs], run_manager=run_manager) File "/Users/josephti/Documents/Free-AUTO-GPT-with-NO-API/venv/lib/python3.10/site-packages/langchain/chains/llm.py", line 79, in generate return self.llm.generate_prompt( File "/Users/josephti/Documents/Free-AUTO-GPT-with-NO-API/venv/lib/python3.10/site-packages/langchain/llms/base.py", line 127, in generate_prompt return self.generate(prompt_strings, stop=stop, callbacks=callbacks) File "/Users/josephti/Documents/Free-AUTO-GPT-with-NO-API/venv/lib/python3.10/site-packages/langchain/llms/base.py", line 176, in generate raise e File "/Users/josephti/Documents/Free-AUTO-GPT-with-NO-API/venv/lib/python3.10/site-packages/langchain/llms/base.py", line 170, in generate self._generate(prompts, stop=stop, run_manager=run_manager) File "/Users/josephti/Documents/Free-AUTO-GPT-with-NO-API/venv/lib/python3.10/site-packages/langchain/llms/base.py", line 379, in _generate else self._call(prompt, stop=stop) File "/Users/josephti/Documents/Free-AUTO-GPT-with-NO-API/OtherAgent/FreeLLM/ChatGPTAPI.py", line 39, in _call self.chatbot = Chatbot(self.token) File "/Users/josephti/Documents/Free-AUTO-GPT-with-NO-API/OtherAgent/FreeLLM/pyChatGPT.py", line 126, in init self.__init_browser() File "/Users/josephti/Documents/Free-AUTO-GPT-with-NO-API/OtherAgent/FreeLLM/pyChatGPT.py", line 189, in init_browser self.driver = uc.Chrome(options=options) File "/Users/josephti/Documents/Free-AUTO-GPT-with-NO-API/venv/lib/python3.10/site-packages/undetected_chromedriver/init.py", line 246, in init__ self.patcher.auto() File "/Users/josephti/Documents/Free-AUTO-GPT-with-NO-API/venv/lib/python3.10/site-packages/undetected_chromedriver/patcher.py", line 124, in auto release = self.fetch_release_number() File "/Users/josephti/Documents/Free-AUTO-GPT-with-NO-API/venv/lib/python3.10/site-packages/undetected_chromedriver/patcher.py", line 145, in fetch_release_number return LooseVersion(urlopen(self.url_repo + path).read().decode()) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 216, in urlopen return opener.open(url, data, timeout) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 519, in open response = self._open(req, data) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 536, in _open result = self._call_chain(self.handle_open, protocol, protocol + File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 496, in _call_chain result = func(args) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 1391, in https_open return self.do_open(http.client.HTTPSConnection, req, File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 1351, in do_open raise URLError(err) urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)>

IntelligenzaArtificiale commented 1 year ago

try to check this solution

joseph6377 commented 1 year ago

Working now!