Time.sleep - server code error 184fc6565e

Hi,

I get a strange error when using time.sleep on server side. Any help is greatly appreciated.

import anvil.server
from time import sleep

@anvil.server.callable
def my_sleep():
  sleep(1)

anvil.server.ExecutionTerminatedError: Server code exited unexpectedly: 184fc6565e
at Form1, line 21

Hi @Tony.Nguyen,

Oops, that’s a confusing error message. Are you in a Basic Python runtime? Because time.sleep() isn’t supported there (although it should definitely display a better message than that…)

1 Like

Thanks so much @meredydd. Indeed, it is the basic Python 3, the full one works fine.

I got the same problem today with time.sleep in a Basic Python Module and still got that cryptic message… It would be a good thing to except this error and raise it with a better message, so people could know what is up and what to do.

1 Like

Ran into the same confusing situation today

1 Like

I got the same issue today.

1 Like