-
Notifications
You must be signed in to change notification settings - Fork 67
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 + EdgeDB solution issue #376
Comments
cc @jaclarke |
The readme was out of date (I've just updated it now). Deno now supports tls alpn (behind the I've just tried out deno's Fresh framework, following the getting started instructions (https://fresh.deno.dev/#getting-started), and for me it works with edgedb-deno by just adding the |
There must be something fundamental I'm missing, because after adding the {
"tasks": {
"start": "deno run -A --watch=static/,routes/ --unstable dev.ts"
},
"importMap": "./import_map.json"
} having my /** @jsx h */
import { h } from "preact";
import { tw } from "@twind";
import { Handlers, PageProps } from "https://deno.land/x/fresh@1.0.0/server.ts";
import * as edgedb from "https://deno.land/x/edgedb@v0.20.10/mod.ts";
export const handler: Handlers = {
async GET(_, ctx) {
const client = edgedb.createClient();
const result = await client.query(`select 2 + 2;`);
return ctx.render(result);
},
};
export default function Home({ data }: PageProps) {
console.log(data);
} I still get this error:
Can you give me any direction on what I'm doing wrong? @jaclarke |
That looks like it should work, it's pretty much the same as my quick test that worked. Can you check what version of EdgeDB you're using and that it's running with the |
I have the same issue... I've copied and ran your example repo (https://github.com/jaclarke/edgedb-fresh), then I've setup the edgedb instance (I have some problems with
Running
Info:
|
Here is the whole example installation process, with the problem attached: @jaclarke This was run with administrator rights
Thank you for the help, it is really appreciated! |
Ah right, I can reproduce the problem now (before I was running edgedb and deno both inside wsl). It seems on windows, Deno is resolving |
can confirm this solves the issue on linux (not wsl) |
I'm using vite-node on linux and it suffers from the same problem. |
I'm trying to use Deno and EdgeDB together in a new framework called Fresh, but I'm running into the TLS issue EdgeDB-Deno. After reading the solution proposed, I'm still not able to connect to the client.
I think I am doing something wrong, but not sure what. Can you maybe offer a more in depth explanation or an example I can follow?
Some direction would be helpful.
Best regards
The text was updated successfully, but these errors were encountered: