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

Deno: Cannot use edgedb connect #179

Closed
haikyuu opened this issue Oct 16, 2021 · 2 comments
Closed

Deno: Cannot use edgedb connect #179

haikyuu opened this issue Oct 16, 2021 · 2 comments

Comments

@haikyuu
Copy link

haikyuu commented Oct 16, 2021

I initialized a small project in Deno but I cannot connect

Error

error: Uncaught Error: Found `edgedb.toml` but the project is not initialized. Run `edgedb project init`.

Screenshot

image

File responsible for error

https://deno.land/x/edgedb@0.14.0/_src/con_utils.ts#L167

@haikyuu haikyuu changed the title Cannot use edgedb connect Deno: Cannot use edgedb connect Oct 16, 2021
@haikyuu
Copy link
Author

haikyuu commented Oct 18, 2021

It's probably because of an outdated version

@haikyuu haikyuu closed this as completed Oct 18, 2021
@jaclarke
Copy link
Member

It's probably because of an outdated version

Yes, in EdgeDB beta 3 the location where instance credentials are stored was changed, and an update to edgedb-js/edgedb-deno v0.15 is needed (https://www.edgedb.com/docs/changelog/1_0_b3#bindings). Though it seems we forgot to release v0.15 on deno.land/x/, so I've just added it now.

However, EdgeDB beta 3 also switched to using TLS by default (https://www.edgedb.com/docs/changelog/1_0_b3#tls), and unfortunately this requires ALPN support in clients, which Deno currently doesn't have (denoland/deno#11479). This means Deno support is now considered experimental and requires running the server with the --allow-insecure-binary-clients flag to work.

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