-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Support self signed certificate #2915
Comments
This seems more like an EdgeDB issue: https://www.edgedb.com/docs/reference/connection#granular-parameters |
Update: export const client = createClient({
tlsSecurity: "insecure"
}); What I'm trying to reason now is about their "binary protocol" has something that is missing.... |
@rvitorgomes Boa tarde, poderia fazer um teste versão |
Tried with this example: // example.ts
const e = require('edgedb');
(async () => {
const client = e.createClient({
});
const res = await client.query("select 2 + 2");
process.stdout.write(res.toString());
process.stdout.write('\n');
})();
In node v17:.
ts-node example.ts |
I actually had this issue earlier today with MongoDB. Confirm working correctly now in |
Your error looks different, my issue that was fixed was: |
// example.ts
import {createClient, createHttpClient} from 'edgedb';
const client = createHttpClient({
instanceName: "edgedb_demo"
});
client.ensureConnected()
const res = await client.query("select 2 + 2")
console.log("Hello via Bun!", res); Here it works properly, using the http communication, |
Probably it's some |
Yeah, I think it also was fixed and another error apeared...maybe I'll check the versions error diff later. |
Retried with 0.6.7, same. |
Not yet but soon will be, working on adding more features on TLS |
Sorry, but was this resolved? I still get this error on Bun 1.0.7
|
What is the problem this feature would solve?
I'm trying to use edgedb javascript client (edgeql-js) but it fails to connect to my local edge server.
error: network error: DEPTH_ZERO_SELF_SIGNED_CERT: self signed certificate
code: "4278256384"
Version:
"edgedb": "^1.2.2",
"bun": "0.6.1",
My code:
The error:
What is the feature you are proposing to solve the problem?
Seems to be a network package missing feature.
What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered: