nicetomytyuk
How to resolve: http2 error: stream error detected: unspecific protocol error detected?
When I try to make a POST request using fetch in DENO I get the error mentioned in the title.
The code:
async activate(company: Company): Promise<void> {
await fetch('http://xxx.it/db/activate', {
body: JSON.stringify(company),
method: 'POST',
});
}
6 replies
How to connect to a MySQL 5.0.24?
I was trying to use mysql@v2.12.1 to connect to a MySQL 5.0.24 Server but it is not compatible, is there any package compatible with Deno I can use to connect to a MySQL server with mentioned version?
I've tried to use npm:mysqld@2.10.2 like
import mysql from "npm:mysql@2.10.2";
But I get some errors like:
Uncaught TypeError: Timers.unenroll is not a function
2 replies
readFile path not found
I'm trying to use Deno.readFile but when is execute i get an error about wrong path.
The files are like this:
- db
- dataservice.ts
- config.sql
- index.ts
Then in daatabservice I try:
private async getConfig(): Promise<string> {
const decoder = new TextDecoder("utf-8");
const bytes = await Deno.readFile("./config.sql");
return decoder.decode(bytes);
}
Error handling product request: NotFound: Impossibile trovare il percorso specificato. (os error 3): readfile './config.sql'
at async Object.readFile (e:\GitHub\GAB-Servizi-SB\eno_fs\30_fs.js:842:18)10 replies