我使用的是 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}]