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

ERR_SSL_WRONG_VERSION_NUMBER #387

Closed
adarshxs opened this issue Aug 5, 2023 · 3 comments
Closed

ERR_SSL_WRONG_VERSION_NUMBER #387

adarshxs opened this issue Aug 5, 2023 · 3 comments
Labels
back This issue is related to the Svelte backend or the DB bug Something isn't working

Comments

@adarshxs
Copy link

adarshxs commented Aug 5, 2023

Model variable:

MODELS=`[
  {
    "name": "llama-2-7b-hf",
    "endpoints": [{"url": https://127.0.0.1:8080/generate_stream}],
    "description": "A good alternative to ChatGPT",
    "userMessageToken": "<|prompter|>",
    "assistantMessageToken": "<|assistant|>",
    "messageEndToken": "</s>",
    "preprompt": "A conversation between a user and an LLM-based AI assistant.",
    "parameters": {
      "temperature": 0.2,
      "top_p": 0.9,
      "repetition_penalty": 1.2,
      "top_k": 10,
      "truncate": 1000,
      "max_new_tokens": 500
    }
  }
]`

Error 500:
root@vitarcdl:/workspace/chat-ui# root@vitarcdl:/workspace/chat-ui# npm run dev --host > chat-ui@0.4.0 dev > vite dev VITE v4.3.5 ready in 1119 ms ➜ Local: http://localhost:5173/ ➜ Network: use --host to expose ➜ press h to show help Error: aborted at connResetException (node:internal/errors:720:14) at abortIncoming (node:_http_server:782:17) at socketOnClose (node:_http_server:776:3) at Socket.emit (node:events:526:35) at TCP. (node:net:337:12) { code: 'ECONNRESET' } TypeError: fetch failed at fetch (/workspace/chat-ui/node_modules/undici/index.js:109:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async eval (/node_modules/@sveltejs/kit/src/runtime/server/fetch.js:32:10) at async POST (/src/routes/conversation/[id]/+server.ts:99:16) at async Module.render_endpoint (/node_modules/@sveltejs/kit/src/runtime/server/endpoint.js:47:20) at async resolve (/node_modules/@sveltejs/kit/src/runtime/server/respond.js:388:17) at async Object.handle (/src/hooks.server.ts:66:20) at async Module.respond (/node_modules/@sveltejs/kit/src/runtime/server/respond.js:259:20) at async file:///workspace/chat-ui/node_modules/@sveltejs/kit/src/exports/vite/dev/index.js:506:22 { cause: [Error: 00187E2BC17F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354: ] { library: 'SSL routines', reason: 'wrong version number', code: 'ERR_SSL_WRONG_VERSION_NUMBER' } }

@nsarrazin nsarrazin added bug Something isn't working back This issue is related to the Svelte backend or the DB labels Aug 7, 2023
@adarshxs
Copy link
Author

adarshxs commented Aug 7, 2023

Works if I change the endpoint from https -> http

"endpoints": [{"url": https://127.0.0.1:8080/generate_stream}], ---> "endpoints": [{"url": http://127.0.0.1:8080/generate_stream}],

@adarshxs adarshxs closed this as completed Aug 7, 2023
@adarshxs adarshxs reopened this Aug 7, 2023
@gary149
Copy link
Collaborator

gary149 commented Sep 18, 2023

Any reason for reopening? is this still broken?

@gary149 gary149 closed this as completed Sep 18, 2023
@adarshxs
Copy link
Author

Any reason for reopening? is this still broken?
No sorry I reopened it by mistake. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back This issue is related to the Svelte backend or the DB bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants