SuperEric
11/09/2023, 11:15 PMresult = await sign_up(sign_up_input.email, sign_up_input.password)
I get the error message
TypeError: sign_up() missing 1 required positional argument: 'tenant_id'
But when I do the call result = await sign_up(tenant_id="", email=sign_up_input.email, password=sign_up_input.password)
I get the error
TypeError: sign_up() takes 3 positional arguments but 4 were given
Is this a bug? Using version 0.16.0 of the supertokens python sdkrp_st
11/10/2023, 5:16 AMrp_st
11/10/2023, 5:16 AMSuperEric
11/10/2023, 3:39 PMfrom supertokens_python.recipe.emailpassword.asyncio import sign_up, send_email, create_reset_password_link
Looking at the source code it really doesn't make sense why this issue is happening. I ran st_version = pkg_resources.get_distribution("supertokens-python").version
print("supertokens version:")
print(st_version)
And confirmed that I am running 0.16.8 of the supertokens library where this error is happeningrp_st
11/10/2023, 3:46 PMSuperEric
11/10/2023, 7:32 PMtenant_id
to all of my override functions as well as any sdk functions I am calling. I was previously on 0.14 of supertokens python where tenant_id is not necessary, but in 0.16, it is necessary everywhererp_st
11/10/2023, 7:32 PMSuperEric
11/10/2023, 7:49 PMsupertokens-postgresql:6.0
to supertokens-postgresql:7.0
. This resolves the error
Caused by: org.postgresql.util.PSQLException: ERROR: null value in column "primary_or_recipe_user_id" of relation "app_id_to_user_id" violates not-null constraint
But in order to apply the schema change to the database, I deleted all the tables and then redeployed the core service docker container tasks, which seeded the DB with the latest schema. Do you know the suggested way for applying schema changes from a core service upgrade to an existing database without deleting the tables?rp_st
11/10/2023, 7:50 PMrp_st
11/10/2023, 7:50 PMSuperEric
11/10/2023, 7:50 PMSuperEric
11/10/2023, 7:50 PM