Back

Astro - Appwrite SDK Not Working Inside Astro Framework

  • 0
  • Web
ZachHandley
23 Sep, 2023, 23:29

hm maybe inside the astro file it thinks it's a server and not a user?

TL;DR
Astro framework is not working properly with the Appwrite SDK. The user is unsure about integrating Astro with Appwrite and suggests checking the headers Astro sends. They also mention that they don't have much knowledge about Astro and suggest debugging by looking at network requests. The user wonders if they should use the server SDK or a separate TypeScript file for Appwrite related tasks. No solution is provided in the thread.
D5
23 Sep, 2023, 23:30

Probably

ZachHandley
23 Sep, 2023, 23:30

wouldn't that return a permission error though

ZachHandley
23 Sep, 2023, 23:30

instead of the collection ID error

D5
23 Sep, 2023, 23:30

Or it gets/tried to be executed where the astro file is saved instead

ZachHandley
23 Sep, 2023, 23:30

yeah I mean the why could be a few things but the other confusing thing

ZachHandley
23 Sep, 2023, 23:31

is that when I call it on the dashboard I use a persistentMap storage with Nanostores

ZachHandley
23 Sep, 2023, 23:31

which should locally store it, but that's empty too

D5
23 Sep, 2023, 23:31

I think not

ZachHandley
23 Sep, 2023, 23:31

hm

ZachHandley
23 Sep, 2023, 23:32

yeah

ZachHandley
23 Sep, 2023, 23:32

that's it

ZachHandley
23 Sep, 2023, 23:32

so should I use the server SDK?

D5
23 Sep, 2023, 23:32

Nope

D5
23 Sep, 2023, 23:33

From what I see here: https://github.com/appwrite/demos-for-astro they're managing it by having a separate typescript file to handle appwrite related stuff

D5
23 Sep, 2023, 23:34

Sincerely I don't have knowledge on how Astro works, since web development isn't my main specialization, plus every 5 seconds, a new JS framework is released 😆

ZachHandley
24 Sep, 2023, 00:31

honestly Astro is great

Drake
25 Sep, 2023, 05:08

To debug, you can try looking at the network requests to see what's going on and if the various cookies and headers are correct

Drake
25 Sep, 2023, 05:08

Probably not but I also don't know Astro

Drake
25 Sep, 2023, 05:09

If a user doesn't have access to something, they'll get a 404. This is to hide the fact that the document even exists

ZachHandley
25 Sep, 2023, 20:34

okay so

ZachHandley
25 Sep, 2023, 20:34

What I think I should do

ZachHandley
25 Sep, 2023, 20:34

is look at the headers Astro sends and has

ZachHandley
25 Sep, 2023, 20:35

and probably make an integration for Astro + Appwrite huh

Drake
25 Sep, 2023, 21:39

maybe. i dunno anything about astro

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more