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
- Realtime api and labels as permission
in my tables i set labels as permission and real-time capabilities stopped working. Before when i was having "any" role everything was working. Note: user have...
- Sveltekit + Bun sites runtime not deploy...
anyone tried deploying sveltekit + bun sites? its building but not running, and the only thing from build console to value is ``` > Using svelte-adapter-bun .s...
- Domain is owned by a different organizat...
I was trying to add a domain to one of my projects however, it keeps giving me the error of Domain is owned by a different organization. I did have a self hoste...