nicetomytyuk
nicetomytyuk
Explore posts from servers
CDCloudflare Developers
Created by nicetomytyuk on 12/10/2024 in #pages-help
How to setup a custom domain for a develop branch?
I'm trying to set a custom domain on the development branch, so I have create a CNAME record for develop.gab-servizi.pages.dev and it is propagated yet. But when I reach the website via the custom domain (test.gabservizi.it) it is propagated to the master branch instead the develop. If I navigate to develop.gab-servizi.pages.dev the content shown is from the develop branch as it has to. What I am missing out? The test: - Navigating to develop.gab-servizi.pages.dev you will be redirect to test.auth.gabservizi.it - Navigating to test.gabservizi.it you will be redirect to auth.gabservizi.it that is a master branch behaviour.
3 replies
DDeno
Created by nicetomytyuk on 5/29/2024 in #help
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
DDeno
Created by nicetomytyuk on 3/20/2024 in #help
How to connect to a MySQL 5.0.24?
I was trying to use [email protected] 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:[email protected] like import mysql from "npm:[email protected]"; But I get some errors like: Uncaught TypeError: Timers.unenroll is not a function
2 replies
DDeno
Created by nicetomytyuk on 3/20/2024 in #help
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