Report: Latest Anvil update causes issues with user accounts

An hour ago my users suddenly started to report the following errors:

First, they were logged out from my server:

Called server function get_orders()
User logged out: john@doe.com

Then they started seeing the following errors:

First error:

anvil.server.PermissionDenied: Cannot access this table from server code.
`<running on the server>`
called from anvil-services/anvil/users/__init__.py, line 82
called from anvil-services/anvil/users/__init__.py, line 679
called from anvil-services/anvil/users/__init__.py, line 679
called from anvil-services/anvil/users/__init__.py, line 679
called from Start, line 55

This was caused by the line:

anvil.users.login_with_form(allow_cancel=True)

I haven’t changed anything in the code in the last few days, I guess Anvil got updated in some way?

Second error, occurs when users create new accounts:

anvil.server.InternalError: force_login() must be passed a row from the users table
at /downlink/anvil/_threaded_server.py, line 518
called from /downlink/anvil/server.py, line 68
called from /downlink/anvil/users/__init__.py, line 113
called from ServerModule1, line 3433
called from /downlink/anvil/_threaded_server.py, line 191
called from Register, line 37

The background here is that the user sets his username and password, the account is created and he is automatically logged in (via anvil.users.force_login(user, remember=True) ).

Thing is, I am passing a row from the users table (and have been doing so for years without problems, this code didn’t change). :thinking:

Hi @tomka,

Please can you confirm whether either of these problems is still happening? We had problems with the Users Service for a few minutes earlier today, but we believe they were resolved promptly.

Thanks!

I haven’t seen any issues since 16:43 CET. So seems to be fixed?

Thanks for confirming!

1 Like