Rank 5: Hypervisor
ok i will do that
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 5: Hypervisor
ok i will do that
Then share what the flutter logs are and a screenshot of the code with the line numbers
Rank 5: Hypervisor
Rank 5: Hypervisor
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?
Rank 5: Hypervisor
yup
Rank 5: Hypervisor
Rank 5: Hypervisor
What's your function code?
Rank 5: Hypervisor
but when I execute that in appwrite console it gives an logs
What were all the options when you ran from console?
Rank 5: Hypervisor
Rank 5: Hypervisor
Same path, no body
Rank 5: Hypervisor
still gives me log
Ok I think the problem is the header. You're telling Appwrite you're sending JSON, but you're not
Rank 5: Hypervisor
but I am not what do you mean?
You're not passing valid JSON in the body.
Rank 5: Hypervisor
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
Rank 5: Hypervisor
Ohhhh I seeeeeee
Rank 5: Hypervisor
so I should delete the content type in headers
Rank 5: Hypervisor
thanks steve
Rank 5: Hypervisor
[SOLVED] Invalid Json in trigger cloud function in dart