Back

[SOLVED] Empty function response body

  • 0
  • Functions
  • Web
Rassvet
16 Oct, 2023, 16:58

Hi all,

I'm creating a token server and I want the token to be returned at the end of execution. Document states the execution needs to be synchronous for the getExecution to return a responseBody that is not empty. So, I turned async off in the createExecution method but the returned data when getExecution is called still has an empty responseBody.

Not sure what went wrong

TL;DR
The user was creating a token server and wanted the token to be returned at the end of execution. They set the createExecution method to be synchronous, as per the documentation, but the returned data when calling getExecution still had an empty responseBody.
Drake
16 Oct, 2023, 17:01

Get execution won't have the data. It would be in the response of create execution

Rassvet
16 Oct, 2023, 17:05

Thank you so much!!

Drake
16 Oct, 2023, 18:07

is your problem resolved? May I close this as solved?

Rassvet
16 Oct, 2023, 18:07

Yes it is resolved, thank you

Drake
16 Oct, 2023, 18:08

[SOLVED] Empty function response body

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more