Back

Test functions locally

  • 0
  • Functions
  • Web
Ajit Singh
10 Aug, 2023, 15:40

Is there a way to test cloud functions locally. I am building in cloud and the biggest problem I face while building is I don't get proper errors and to check even 1 error first I have to deploy and check if something goes wrong. Is there a way I can test it and get detailed logs.

The cloud does not give detailed logs with stacktraces. I can under stand mocking entire env is really hard but is there a workaround.

TL;DR
The user is asking if there is a way to test cloud functions locally in order to get detailed logs and better error handling. They mention that they cannot add variables like auth and uploads in open runtimes. They provide a link to a Discord discussion for reference. There is no solution mentioned in the thread.
joeyouss
10 Aug, 2023, 16:15

Hey

Ajit Singh
11 Aug, 2023, 07:03

I already checked that but in open runtimes I cannot add variables auth and uploads, api key etc.

Drake
12 Aug, 2023, 14:41

You would manually pass that along just like how Appwrite does it

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