Whoa, why is it so big?
@Steven on click => i managed to created the function execution
And?
I was unable to deploy the function coz' the code.tar.gz file was abt 61.9 mb @Steven
So your primary problem is deploying the function...nothing related to creating an execution, right?
@Steven yup
@Steven how the code.tar.gz file got that huge ? Any prob with my code ?
Ya...I was hoping you could tell us that
can you possibly upload all your function code to github or something?
I'm very curious as to why this is happening 👀
This might not be right either...
@safwan Okie already have a repo
@safwan https://github.com/antonrejoe/Notes here is the repo
Can you try deploying using appwrite deploy function?
@safwan and @Steven I have a doubt is there any way to check if the current logged in user has permission over a particular document or collection etc.
@Steven it's working rn
If they can get the document, they can read it. Then, look at the $permissions on the document to see if they can update or delete
You were probably trying to deploy your whole folder leading to 90mb
@Steven okie dokie
@Steven rn it's returning 500 status code
This usually happens because there's some problem with the function code or the code is throwing an exception
@Steven here is the function code in index.js
Recommendations:
- Wrap everything in a try catch yo prevent your code from throwing an exception
- Make sure to always call res.json() or res.send() exactly once 3 don't use then() and catchError(). Use try/catch/await instead
@Steven okie
And don't res.send(error). Maybe do error.toString()
Recommended threads
- is `account.get()` safe to be used in th...
I want to user's `id` for authentication. However, a while ago I was told in this server not to use `account.get()` and instead add user preferences for that us...
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- CORS errors in Obsidian custom plugin
Hi, anyone here familiar with obsidian community plugins? In short: it's a local first note app which supports writing your own add-ons / plugin But I keep get...