Back

[SOLVED] Execution timed out.

  • 0
  • Self Hosted
  • Functions
D5
2 Feb, 2024, 00:01

I have a Dart function and get that error when executing it. I get in the openruntimes logs EOF error.

TL;DR
Title: [SOLVED] Execution timed out. Code issue. The developer realized they were missing a 'return' statement in their code. They corrected it by adding 'return context.res.send("hello world");', but the error persisted. They also tried simplifying the code to just 'context.res.send("hello world");', but the error remained. No logs were appearing and the code was not being executed. It was later discovered that there was an EOF error in the openruntimes logs.
D5
2 Feb, 2024, 00:05

The function code is 100% correct

Steven
2 Feb, 2024, 00:22

Are logging anything? Or returning custom headers?

D5
2 Feb, 2024, 00:23

Nope, nothing logs and code is not being executed

D5
2 Feb, 2024, 00:24

I even tried changing all the code to a simple context.res.send("hello world"); And the same error retures, with timeout and EOF in docker compose logs

D5
2 Feb, 2024, 00:24

I think the function got malformed, created a new one

D5
2 Feb, 2024, 00:36

I'm dumb

D5
2 Feb, 2024, 00:36

It's RETURN context.res.send("hello world");

D5
2 Feb, 2024, 00:36

I wasn't writing return πŸ™ˆ

D5
2 Feb, 2024, 00:36

Sorry @Steven πŸ˜†

D5
2 Feb, 2024, 00:37

[SOLVED] Execution timed out.

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