Hi,
I have a flutter x cloud solution. I have a cron job running every day to check for all users that have a free trial enables and checks the date of the expiration of their free trial. If 10 days passed they will have it removed.
- The cron operates as expected
- All variables are passed as expected
- When running the user's endpoint (With the given api key) they are all returned from curl
I can't quite work out why userList is 0.
Here is my code: its too long for discord!
The problem is at
const userList = await users.list(undefined, limit, offset);
log(`Fetched ${userList.users.length} users in this batch.`);
Where it returns 0.
I can confirm there are more than 0 users
Recommended threads
- Cloud function deploy stucks in processi...
Been trying for the last hours to deploy my function but for whatever reason, alwasy stuck on processing!
- One-time Cloud migration blocked by data...
Hi, I’m blocked on a one-time migration from Appwrite Cloud to my self-hosted Appwrite instance. We already fixed the region issue, and the migration now corre...
- [SOLVED] curl error Number: 6 — function...
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird...