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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Unable to connect to any Chat APIs #2100

Closed
3 tasks done
Covalent0714 opened this issue Apr 17, 2024 · 13 comments
Closed
3 tasks done

[BUG] Unable to connect to any Chat APIs #2100

Covalent0714 opened this issue Apr 17, 2024 · 13 comments
Labels
馃悰 Bug [ISSUE] Ticket describing something that isn't working 馃獰 Windows [ISSUE] The Environment is on Windows

Comments

@Covalent0714
Copy link

Covalent0714 commented Apr 17, 2024

Environment

馃獰 Windows

System

Windows 10

Version

1.11.8 'staging' (d636385)

Desktop Information

NovelAI and Cohere APIs

Describe the problem

Attempts to connect to any chat APIs (Cohere and NovelAI shown as examples yield a FetchError and says "No connection..."

FetchError: request to https://api.cohere.ai/v1/models failed, reason: unable to verify the first certificate
at ClientRequest. (C:\Users[REDACTED]\Documents\GitHub\SillyTavern\node_modules\node-fetch\lib\index.js:1505:11)
at ClientRequest.emit (node:events:513:28)
at TLSSocket.socketErrorListener (node:_http_client:502:9)
at TLSSocket.emit (node:events:513:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
type: 'system',
errno: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE',
code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'

FetchError: request to https://api.novelai.net/user/subscription failed, reason: unable to verify the first certificate
at ClientRequest. (C:\Users[REDACTED]\Documents\GitHub\SillyTavern\node_modules\node-fetch\lib\index.js:1505:11)
at ClientRequest.emit (node:events:513:28)
at TLSSocket.socketErrorListener (node:_http_client:502:9)
at TLSSocket.emit (node:events:513:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
type: 'system',
errno: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE',
code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'

This is a new problem that arose today. Nothing was changed with regards to API keys.

Additional info

No response

Please tick the boxes

@Covalent0714 Covalent0714 added the 馃悰 Bug [ISSUE] Ticket describing something that isn't working label Apr 17, 2024
@github-actions github-actions bot added the 馃獰 Windows [ISSUE] The Environment is on Windows label Apr 17, 2024
@Cohee1207
Copy link
Member

What's your node version?

@Covalent0714
Copy link
Author

v18.16.1

@Cohee1207
Copy link
Member

Try updating to the latest LTS version (20)

@Covalent0714
Copy link
Author

Updated node.js to v20.12.2

Still getting the same error.

@sorrowhead
Copy link

currently having exactly the same problem with NovelAi. everything was ok, this error started appearing few hours ago. maybe it's something about servers, idk.

@Cohee1207
Copy link
Member

@sorrowhead do you perhaps have a ESET antivirus software installed?
@Covalent0714 and another person in ST Discord confirmed they use antivirus from this vendor.

@Petero48
Copy link

I have the same or similar problem with OpenRouter, it worked couple of hours ago but now it doesnt, i get this error msg:
Instantiated the tokenizer for gpt-3.5-turbo
FetchError: request to https://openrouter.ai/api/v1/models failed, reason: unable to verify the first certificate
at ClientRequest. (E:\SillyTavern-1.11.7\node_modules\node-fetch\lib\index.js:1505:11)
at ClientRequest.emit (node:events:518:28)
at TLSSocket.socketErrorListener (node:_http_client:500:9)
at TLSSocket.emit (node:events:518:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
type: 'system',
errno: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE',
code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'

@Cohee1207
Copy link
Member

This was found to be a problem with ESET antivirus. Adding an exception for Node in SSL protection rules seems to help.

Thanks @Covalent0714 for the image.

image

@Petero48
Copy link

This was found to be a problem with ESET antivirus. Adding an exception for Node in SSL protection rules seems to help.

Thanks @Covalent0714 for the image.

image

It worked! Thank you.

@sorrowhead
Copy link

This was found to be a problem with ESET antivirus. Adding an exception for Node in SSL protection rules seems to help.

Thanks @Covalent0714 for the image.

image

that worked, thank you very much! <3

@NoCopy
Copy link

NoCopy commented Apr 18, 2024

@Cohee1207 Through a round-a-bout journey today I found this by going from Stack Overflow > ESET > here.

Just wanted to extend a massive thanks for posting about this on the ESET forums so it could be recognized. That helped myself and a bunch of co-workers today.

Again, seriously, respect. We owe you a beer.... or lots of beers.

@sorrowhead
Copy link

not sure if i should make separate issue post, for some hours everything worked okay after adding the exception in ESET, but now i'm having this problem:
it happens when i try to run sillytavern.

Screenshot 2024-04-19 122823

@Cohee1207
Copy link
Member

@sorrowhead it looks like your node install is not in the PATH variable anymore. Try reinstalling it.

I'm closing this issue as we currently have a workaround solution and ESET is working on a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
馃悰 Bug [ISSUE] Ticket describing something that isn't working 馃獰 Windows [ISSUE] The Environment is on Windows
Projects
None yet
Development

No branches or pull requests

5 participants