Hi everyone.
I have function which requires jwt in json format. The function works great with android sdk but I need to call it with RestApi from other platform. The problem is even if I add response body, I'm not able to get it into my function. According to provided logs, client sent body as required, with "Content type: application/json" header and project Id. Where is my mistake? Any ideas? As you can see, the call returns execution object with code 201. It means endpoint is correct and there are no permission errors.
#[SOLVED] Client sent data but the function got empty body
1 messages · Page 1 of 1 (latest)
Can you provide the parameters you're passing to create the execution? Also, have you tried logging the bodyRaw and headers on the server?
Aw, after your answer I went to docs and saw I made a mistake in parameters. Instead of body = {"jwt":"$jwt"} we shoild sending body = {body = {"jwt":"$jwt"}, [other parameters if required]}. This syntax works perfectly.
Thank you)