After looking at every similar error on the community board and finding no resolution, I am bringing it here.
What I’m trying to do:
I am trying to do a simple test of uplink, replicating the video at https://www.youtube.com/watch?v=ebliOT-_ZEY
I have set up the uplink function on my desktop with the following code
import anvil.server
# Connect to Anvil Server
anvil.server.connect("client_<uplink key>")
@anvil.server.callable
def say_hello(name):
response = 'Hello from uplink, %s!' % name
print(response)
return response
anvil.server.wait_forever()
I have the following code in form1 in Anvil
from ._anvil_designer import Form1Template
from anvil import *
import anvil.server
class Form1(Form1Template):
def __init__(self, **properties):
# Set Form properties and Data Bindings.
self.init_components(**properties)
# Any code you write here will run before the form opens.
def button_1_click(self, **event_args):
text = anvil.server.call( 'say_hello', self.text_box_input.text)
self.label_output.txt = text
What I’ve tried and what’s not working:
when I run the app I get the error:
`anvil.server.NoServerFunctionError: No server function matching "say_hello" has been registered`
* `at Form1, line 13`
Here is a clone of the simple little app