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
- education plan not activated
Hi I have an edu id 13103046@iubat.edu but when I am trying to claim my plan and trying to logging with github where education student plan active. the appwrite...
- 500 simultaneous OAuth logins from the s...
Hi, I'd like to ask about rate limiting around Google OAuth login on Appwrite Cloud. **OVERVIEW** Service type: A PWA (web app) for members of a university clu...
- Suspicious access pattern detected when ...
Hello, I am having trouble restoring my project. In the past it worked with no problems, but today I get an error "Suspicious access pattern detected". How can ...