Back

res.text is not a function

  • 0
  • Self Hosted
  • Functions
Bob
23 Aug, 2024, 04:38

I'm using Version 1.5.8 and trying to set up a function starting only with the provided starter template. Running it on Node, Node-Typescript, and Bun, I encountered the error: TypeError: res.text is not a function. How can I resolve this issue?

TL;DR
Developer using Version 1.5.8 facing 'TypeError: res.text is not a function' error while setting up a function with provided template on Node, Node-Typescript, and Bun. To resolve this, ensure the correct method is used to handle response objects, such as res.send() or res.json().
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