2
我使用Flask-Stormpath,然後切換到Flask-security而不是Flask -Stormpath。所以我卸載它(stormpath)。 但不知何故,我不知道它是採取stormpath帳戶來查找用戶的詳細信息。DataError:(psycopg2.DataError)整數無效的輸入語法:「https://api.stormpath.com/v1/accounts/xxxxxxxxxxxxxxxxxxx」
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}]
嘿,我剛剛檢查它,它工作正常!我想因爲Flask-stormpath也使用了Flask-security,所以它是由於緩存而發生的。 因爲我的本地環境一直工作得很好,並且具有相同的代碼生產未按預期工作。 謝謝雖然.. :) –