Skip to content
Back

deno 2 Cloud random errors

  • 0
  • Functions
  • Cloud
roran
4 Jul, 2025, 19:21

we have big problems with the functions. although we do not change anything in the function, we have the following random behaviour:

  • no scope permissions error, although they are set. sometimes the execution works, sometimes not
  • random cold boot timeout

the function is in deno2.0

TL;DR
Developers are facing random errors in their Deno 2 Cloud functions using Appwrite due to missing scope permissions and cold boot timeouts. The issue may not be related to cold starts, and users are sometimes not receiving welcome emails. The errors started after a cloud update to version 1.7.
roran
4 Jul, 2025, 19:23

the function only creates a message for a welcome email. that's frustrating that new users don't get one

roran
4 Jul, 2025, 19:26

we have had 3 new users earlier, 2 have not received an email one has

roran
4 Jul, 2025, 19:27

since cloud update to 1.7 the functions are totally unstable

D5
4 Jul, 2025, 19:38

Massage? ๐Ÿ˜œ

D5
4 Jul, 2025, 19:40

Hmm the cold start could be due to some appwrite issue, but I think the missing scope one not. What the function code? Make sure to censor the API keys if you included them in the code

roran
4 Jul, 2025, 19:42

The scope is configured in the settings, and most of the time it works; however, we occasionally get a โ€˜No scopeโ€™ error.

roran
4 Jul, 2025, 19:43

const client = new Client() .setEndpoint(Deno.env.get("APPWRITE_FUNCTION_API_ENDPOINT") ?? "") .setProject(Deno.env.get("APPWRITE_FUNCTION_PROJECT_ID") ?? "") .setKey(req.headers["x-appwrite-key"] ?? "");

D5
4 Jul, 2025, 19:47

What's the full code?

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