
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
- Queries Length Error.
Hi All, I am having a issues across my app with how i am getting data, and just wanted to check if this was an issues with the new changes on appwrite over the...
- Realtime is not working!!
It shows `Session is not valid`. I am using SSR login. If if set table permission `User(Read)` then realtime can not show update. But if I set table permission...
- How to make only main branch trigger bui...
Hello! Using cloud. On sites, when I push to github a commit I made to a branch in the repo, which is not the main branch and it is not the one set as "producti...
