我正在使用Flask-Stormpath然后我切换到Flask-security而不是Flask-Stormpath。所以我卸载它(stormpath)。 但不知何故,我不知道它正在采用stormpath帐户来查找用户详细信息。
DataError: (psycopg2.DataError) invalid input syntax for integer:
"https://api.stormpath.com/v1/accounts/xxxxxxxxxxxxxxxxxx"
LINE 3: WHERE auth_user.id = 'https://api.stormpath.com/v1/accounts/...
[SQL: 'SELECT auth_user.id AS auth_user_id, auth_user.uuid AS auth_user_uuid, auth_user.created_at AS auth_user_created_at, auth_user.updated_at AS auth_user_updated_at, auth_user.deleted_at AS auth_user_deleted_at, auth_user.email AS auth_user_email, auth_user.password AS auth_user_password, auth_user.first_name AS auth_user_first_name, auth_user.last_name AS auth_user_last_name, auth_user.active AS auth_user_active, auth_user.confirmed_at AS auth_user_confirmed_at, auth_user.last_login_at AS auth_user_last_login_at, auth_user.current_login_at AS auth_user_current_login_at, auth_user.last_login_ip AS auth_user_last_login_ip, auth_user.current_login_ip AS auth_user_current_login_ip, auth_user.login_count AS auth_user_login_count \nFROM auth_user \nWHERE auth_user.id = %(id_1)s \n LIMIT %(param_1)s'] [parameters: {'id_1': u'https://api.stormpath.com/v1/accounts/xxxxxxxxxxxxxxxx', 'param_1': 1}]
答案 0 :(得分:1)
您的代码正在传递URL,它应该将用户的ID传递给函数。
请尝试找出错误传递代码的位置。如果您无法修复代码,请编辑问题并包含完整的追溯和相关代码。