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
- Paused project can't activate
I have failed to reactivate one my projects which had been paused
- Site deployment keeps getting failed
Hi good folks, need a hand with Sites deploy Error on every deploy: Synchronous function execution timed out... duration doesn't exceed 30 seconds [exact log ...
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...