Server timeout for every call

What I’m trying to do:
access the server
What I’ve tried and what’s not working:
every function results in a timeout

Hello all,

Every server call results in a timeout error.

example:

test_server=anvil.server.call(‘test_server’)
if test_server:
print(‘ok’)

@anvil.server.callable
def test_server():
print(“testing server”)
return True

This results in a timeout error and does not print “testing server”. This is only for one particular app whereas my others work fine.

Any advice appreciated - thanks

the culprit seems to be the langchain library. after i removed it the problem was resolved.

Were you doing global initialization of langchain? That should be done in a background task so you don’t have the timeout limitation.

1 Like

no global init. everything was working fine until a couple of days ago