#[SOLVED] function not running properly

1 messages · Page 1 of 1 (latest)

tight kayak
#

i tried to log the env variables
but its logging null

log( 'ENV', JSON.stringify(process.env))

tight kayak
#

when i initiate the client using ENV variables

const client = new sdk.Client()
.setEndpoint(process.env.APPWRITE_FUNCTION_ENDPOINT)
.setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID)
.setKey(process.env.APPWRITE_API_KEY);

its returning 0 documents

but when i initiate it directly it shows proper result

valid basin
valid basin
tight kayak
#

So it was returning 0 documents

valid basin
tight kayak
#

But instead its still fetching but there are no documents i mean 0