Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Websearch doesn't work: certificate error #1297

Open
iScriptLex opened this issue Jan 4, 2025 · 7 comments
Open

Websearch doesn't work: certificate error #1297

iScriptLex opened this issue Jan 4, 2025 · 7 comments

Comments

@iScriptLex
Copy link

When I try to use new websearch feature (KoboldCPP 1.81, koboldcpp-linux-x64-cuda1210 binary, KUbuntu 22.04), it can't add anything to the prompt. With --debugmode key it prints the following error:

Performing new websearch...                                                     
WebSearch URL: https://html.duckduckgo.com/html/?q=Who%20is%20Wendy%20O.%20Koopa%3F
Error fetching text from URL https://html.duckduckgo.com/html/?q=Who%20is%20Wend
y%20O.%20Koopa%3F: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate v
erify failed: self-signed certificate in certificate chain (_ssl.c:1135)>
No results found! Maybe something went wrong...

Both Firefox and Chrome on the same PC open link https://html.duckduckgo.com/html/?q=Who%20is%20Wendy%20O.%20Koopa%3F without any problems or security warnings. wget and curl from command line do the same - no errors, they successfully download valid html content.

@LostRuins
Copy link
Owner

Hi, if you have python installed this can usually be solved by pip install certifi or pip install pip-system-certs

If you don't want to modify your system python, you can also enable --nocertify or disable SSL certify in the upcoming 1.81.1 patch release, which should allow websearch while ignoring certificate issues. This release will be live in a few hours.

@LostRuins
Copy link
Owner

Fix is out

@phillip20
Copy link

phillip20 commented Jan 15, 2025

i will pay in doge if some one will make a youtube video on how to set it up for windows i will be often to keep up my part i have tryed so hard to get this websearch working

@PasiKoodaa
Copy link

i will pay in doge if some one will make a youtube video on how to set it up for windows i will be often to keep up my part i have tryed so hard to get this websearch working

You need to enable it in two places:

webseras
context
Press the Context button to get there

@phillip20
Copy link

phillip20 commented Jan 15, 2025

Thank you where do i donate or are you good

@PasiKoodaa
Copy link

Donate to some charity :)

@phillip20
Copy link

You bet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants