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
- Finding job
Hi. I am a full-stack developer with experience in developing scalable and user-friendly web applications. I handle both front-end and back-end development, im...
- CDN not delivering correct bundle
My site 69b4cd410035893573dc is not delivering the latest deployed version via CDN, it seems stuck on versions from previoiu days, alternative links for the lat...
- Site ID: 6a22303d000c95ef93bdDomain: van...
multiple rapid deployments + a force push to master caused the router to lose the domain-to-deployment binding, even though the Domains tab shows the mapping is...