Astro / Bun - Error reading db
I am getting
{ message: 'Forbidden resource', error: 'Forbidden', statusCode: 403 }
from console.log...
Server is running on localhost:1111, I tried to specify it, thinking it might try to do https, but it is not that. Not sure what to try next.
When trying Astro example:
---
import ManifestSDK from "@mnfst/sdk";
// Init SDK.
//const manifest = new ManifestSDK();
const manifest = new ManifestSDK("http://localhost:1111");
// Fetch the cat list.
const result = await manifest.from("cats").find();
console.log(result);
const cats = result.data;
---
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} />
<title>Astro</title>
</head>
<body>
<ul>
{cats.map((cat) => <li>{cat.name}</li>)}
</ul>
</body>
</html>
{ message: 'Forbidden resource', error: 'Forbidden', statusCode: 403 }
from console.log...
Server is running on localhost:1111, I tried to specify it, thinking it might try to do https, but it is not that. Not sure what to try next.
When trying Astro example:
---
import ManifestSDK from "@mnfst/sdk";
// Init SDK.
//const manifest = new ManifestSDK();
const manifest = new ManifestSDK("http://localhost:1111");
// Fetch the cat list.
const result = await manifest.from("cats").find();
console.log(result);
const cats = result.data;
---
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} />
<title>Astro</title>
</head>
<body>
<ul>
{cats.map((cat) => <li>{cat.name}</li>)}
</ul>
</body>
</html>
