[Fixed] Warnings from server side model class methods

If I create a server side method on a model class as per the docs example, I get warnings when the server starts:

Warning: a callable with the name 'anvil.server_side/app.services.model.my_model.my_method' has already been registered (previously by 'anvil._server.server_method_func' now by 'anvil._server.server_method_func').

They’re an irritation rather than an actual problem but I wouldn’t expect to see warnings as a result of following the docs.

2 Likes

I have the feeling that a module is being imported twice, perhaps once with absolute path, once with relative path.

Yeap that is irritating we’ll get that fixed

2 Likes

A slightly different way to express gratitude.

1 Like