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

{ library: 'SSL routines', function: 'ssl3_get_record', reason: 'wrong version number', code: 'ERR_SSL_WRONG_VERSION_NUMBER' } Error #362

Open
projser opened this issue Apr 5, 2022 · 1 comment

Comments

@projser
Copy link

projser commented Apr 5, 2022

I am using solr 8.11. behingd a nginx server at digitalocean on ubuntu 20.00.

trying to run the code:

// Use var solr = require('solr-client') in your code
var solr = require('solr-client');

var client = solr.createClient({
host : 'XXXX',
path:"/solr",
protocol: 'https',
core : 'XXXXXX',
secure: true

});

client.basicAuth('XXXXX','XXXXXXX');

// Use client.unauth if you want to remove credentials previously set.
//client.unauth();
const query2 = client.query().q({ description: 'rice' }).start(0).rows(10);
const obj2 = client.search(query2, ()=> {
console.log(obj2);
});

and i getting the error:

{
library: 'SSL routines',
function: 'ssl3_get_record',
reason: 'wrong version number',
code: 'ERR_SSL_WRONG_VERSION_NUMBER'
}

I dont know whether the error is on the solr-client, on my code or on nginx ..

Please advice me,

Regards

Julio

@kibertoad
Copy link
Collaborator

See nodejs/undici#267

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

2 participants