I am new to Anvil and experimenting to see if the platform suits me.
Perhaps I am making a rookie mistake here, but I can’t figure out why a basic server call isn’t working. When triggered, the session immediately times out (showing Session Expired notice).
def button_generate_click(self, **event_args):
“”“This method is called when the button is clicked”“”
print(“trying…”)
valid = anvil.server.call(‘input_validation’)
self.label_reference.text = valid
“trying…” does print to console but session times out before label_reference.text is changed.
Please can you post a clone link so someone can take a look at your code? On the face of it, that code should work. So chances are there’s something else at play.
Depending on which IDE you are using, the clone instructions are either here for the original IDE :