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
- Domain Verification Failed - Fastly Conf...
I am trying to add my subdomain api.getmyself.app to my Custom Domain, but I keep getting the error: Domain 'getmyself.app' is owned by another customer I have...
- Data not loading at the frontend
My App that has been working for weeks, ain't loading anything at the frontend anymore. I thought maybe the API key expired but it's not the case. Users are log...
- Do I need to upgrade my Appwrite plan?
So i am making a file hosting & sharing platform (voltzy.lol) and i am expecting approx 5-8 million visit per month and over 30 million uploads per month do i n...