ok i will do that
Then share what the flutter logs are and a screenshot of the code with the line numbers
So this error is happening in the function itself
You said there are no logs in or error in the function execution in the Appwrite console?
Is your function code not executing at all?
yup
What's your function code?
but when I execute that in appwrite console it gives an logs
What were all the options when you ran from console?
Same path, no body
still gives me log
Ok I think the problem is the header. You're telling Appwrite you're sending JSON, but you're not
but I am not what do you mean?
You're not passing valid JSON in the body.
so it means it required to put this
You need to pass some JSON body if you're going to put the headers saying you're passing json
Ohhhh I seeeeeee
so I should delete the content type in headers
thanks steve
[SOLVED] Invalid Json in trigger cloud function in dart
Recommended threads
- Function global variables
when i create a top-level global variable in go or bun how will it behave? is the heap getting renewed on every execution or could i do some kind of temp. cachi...
- Appwrite Auth & Function don't reveal cl...
When I execute a function or sign in with my Flutter app, Appwrite does not show my real IP: instead, it seems that Appwrite shows Fastly CDN IP address.
- Why does this happen?
`AppwriteException: general_argument_invalid, Invalid `secret` param: Value must be a valid string and at least 1 chars and no longer than 256 chars (400)` the...