Tino
Tino
DDeno
Created by Tino on 10/10/2024 in #help
invalid peer certificate: Expired
No description
1 replies
DDeno
Created by Tino on 9/13/2024 in #help
deno lint missing imports
Question regarding deno lint. Is there a rule to ensure that all packages have an import?
2 replies
DDeno
Created by Tino on 10/13/2023 in #help
Turso with local db file
I wanted to try out Turso's syncURL feature and for that it creates a local db file to read from and syncs any written data remote first before it writes it locally. However, I am not getting that far due to the following issue: LibsqlError: URL_SCHEME_NOT_SUPPORTED: The client that uses Web standard APIs supports only "libsql:", "wss:", "ws:", "https:" and "http:" URLs, got "file:". For more information, please read https://github.com/libsql/libsql-client-ts#supported-urls Deno code:
// main.ts
createClient({
url: "file:local.db",
syncUrl: Deno.env.get("URL"),
authToken: Deno.env.get("TOKEN")
});
// main.ts
createClient({
url: "file:local.db",
syncUrl: Deno.env.get("URL"),
authToken: Deno.env.get("TOKEN")
});
The script has all permissions by deno run -A main.ts. Based on the error file: is simply not supported since Deno is allowing only web standard APIs? Any other way to allow this? I am just suprised this isn't working since the use case seems acceptable.
6 replies
DDeno
Created by Tino on 10/9/2023 in #help
Deployment fails with "An internal server error occured" - no further details
Morning, I receive the mentioned message without any pointers of what the issue could be. The issue happened after I made a bunch of code additions, meaning the deployment worked just fine before. An actual error message would be really helpful to figure what code/package is failing. To be clear, on my local machine everything just works fine. Among others I am using the aws-sdk package and I've read that this could cause issues. The suggested solution is to add an env variable HOME=/src However, that didn't make any change. So I removed that script for to see what would happen. Still internal error. I can of cause keep going and ripping out script/code after code to see what causes the internal at the deployment stage but a more detailed error message would help here as well sending me in the right direction. Any pointers? Thanks Tino
4 replies