Serialization error when confirming email (custom signup flow)

I’m using a translated version of the custom sign-up flow app. Everything is working fine except when I try to confirm an email I registered. Here is the error I get after clicking the confirmation link.

Error:

SerializationError: Cannot serialize arguments to function. Cannot serialize <class 'bytes'> object at msg['args'][0]
at /libanvil/anvil/_threaded_server.py, line 318
called from /libanvil/anvil/_threaded_server.py, line 326
called from /libanvil/anvil/server.py, line 38
called from /sbxshims/bcrypt.py, line 7
called from custom_signup/ServerModule1.py, line 61
called from custom_signup/ServerModule1.py, line 103
called from custom_signup/ServerModule1.py, line 124
called from app/custom_signup/login_flow.py, line 105called from [Navigation, line 45]

I thought it might be connected to Python 2 vs Python 3 bcrypt hashing referenced here: Custom Signup Flow Error on Sign Up

But I checked my custom signup app and it seems to have the correct code. Here is my signup app:
https://anvil.works/build#clone:G6M5F57RDWXGTPKI=ZOJZ6ILLXCM466YP5PZSQ77T

I can’t explain it, but it’s working now. I’m guessing I was changing too many things trying to troubleshoot and I should have slowed down.

1 Like