Admin
Whoa, why is it so big?
Votes
0
Replies
24
Participants
Unknown
Messages
25
Admin
Whoa, why is it so big?
Rank 2: Process
@Steven on click => i managed to created the function execution
Admin
And?
Rank 2: Process
I was unable to deploy the function coz' the code.tar.gz file was abt 61.9 mb @Steven
Admin
So your primary problem is deploying the function...nothing related to creating an execution, right?
Rank 2: Process
@Steven yup
Rank 2: Process
@Steven how the code.tar.gz file got that huge ? Any prob with my code ?
Admin
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 👀
Admin
This might not be right either...
Rank 2: Process
@safwan Okie already have a repo
Rank 2: Process
@safwan https://github.com/antonrejoe/Notes here is the repo
Admin
Can you try deploying using appwrite deploy function?
Rank 2: Process
@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.
Rank 2: Process
@Steven it's working rn
Admin
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
Admin
You were probably trying to deploy your whole folder leading to 90mb
Rank 2: Process
@Steven okie dokie
Rank 2: Process
@Steven rn it's returning 500 status code
Admin
This usually happens because there's some problem with the function code or the code is throwing an exception
Rank 2: Process
@Steven here is the function code in index.js
Admin
Recommendations:
Rank 2: Process
@Steven okie
Admin
And don't res.send(error). Maybe do error.toString()