Connection refused when creating a local API server
I'm following Simple API server | Deno Docs:
1. Create
2. Run
3. Run:
I get this error:
Searching for the error, I think I need to replace
This doesn't help either.
In my understanding, it should return
Do you know what goes wrong?
(Also asked on Stack OVerflow)
1. Create
server.ts:2. Run
deno run -A --unstable server.ts. The site says "Please provide a slug" 3. Run:
I get this error:
Searching for the error, I think I need to replace
localhost with 127.0.0.1:This doesn't help either.
In my understanding, it should return
Do you know what goes wrong?
(Also asked on Stack OVerflow)
Deno is great for creating simple, light-weight API servers. Learn how to create

Stack Overflow
Hello I am testing the endpoint and when I run php testing.php I get this error. Any help would be appreciated it.
Fatal error: Uncaught exception 'Guzzle\Http\Exception\CurlException' with
Fatal error: Uncaught exception 'Guzzle\Http\Exception\CurlException' with
Stack Overflow
I'm following Simple API server | Deno Docs:
Create server.ts:
const kv = await Deno.openKv();
Deno.serve(async (request: Request) => {
// Create short links
if (request.method == "P...
Create server.ts:
const kv = await Deno.openKv();
Deno.serve(async (request: Request) => {
// Create short links
if (request.method == "P...
