Hey everyone, I'm having an issue where no data is being passed to the appwrite function when an event is called or when the function is executed from the client with data passed into the body (I've ensured it's a post request).
I tried logging the req and res, as well as the env just to test and everything is empty
Code
export default async ({ req, res, error, log }: any) => {
log("req", req);
log("res", res);
log("Bun ENV", Bun.env);
return res.empty();
Output from logs:
req
res
Bun ENV
I'm using the bun-1.0 runtime, and here is the database event that should (in theory) work: databases.*.collections.*.documents.*.create
This is successfully triggering the function, but no data is being passed in. Am I missing something here?
Thanks!
Recommended threads
- Got message for auto payment of 15usd fo...
how did this happen? 1. i claimed my 50usd credits via jsm hackathon - https://hackathon.jsmastery.pro/ 2. it asked me which org. to apply the credits on, i se...
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...