
Hello there, I was trying to access a funtion i create via appwrite cloud as a logged in user via sveltekit but on function it's seeing my request as guest while on app, it's showing as logged in
what am I doing wrong

export const doFunction = (functionId, query) => { console.log('query: ', query); return functions.createExecution( FUNCTIONS[functionId], JSON.stringify(query) ).then(function (response) { console.log('A document', response); return { status: 200, // total: response.total, response: JSON.parse(response.responseBody) }; }).catch(function (error) { console.log(error); if (error.code == 401) { if (error.type == 'user_unauthorized') { alert(error.message) goto('/auth/login') } } return { status: error.code, errorType: error.type, error: error.messages }; }); };
This is how my request look like
Recommended threads
- Adding "name" column to table creates 2-...
As stated, im adding the "name" column to one table, it adds 4 duplicates. In another table it adds 3 duplicates, and when I delete 1 of them, all duplucates di...
- Server Error when Pushing a Function
Get this ambiguous error when trying to push my function, it's TypeScript using NodeJS 18 ``` ? Which functions would you like to push? get-grades (get-grades)...
- Looking for Partner
I'm looking for a partner for long-term collaboration. Of course, you'll get paid for it. If you are interested, please send a DM to me
