2012-05-15 59 views
1

我截斷用戶表,現在我不能運行的應用程序,這總是在錯誤日誌:谷歌驅動dredit令牌錯誤

[15-May-2012 22:56:58] Error when authenticating and authorizing user: Error fetching OAuth2 access token, message: 'invalid_grant'

[15-May-2012 22:56:59] Error when authenticating and authorizing user: Error fetching OAuth2 access token, message: 'invalid_grant'

[15-May-2012 22:56:59] Error when authenticating and authorizing user: Error fetching OAuth2 access token, message: 'invalid_grant'

[15-May-2012 22:57:00] Error retrieving user from DB or updating refresh token: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'refresh_token' cannot be null

[15-May-2012 22:57:00] PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'refresh_token' cannot be null' in /var/www/drivecrypt/www/auth_handler.php:214

Stack trace:

#0 /var/www/drivecrypt/www/auth_handler.php(214): PDOStatement->execute()

#1 /var/www/drivecrypt/www/auth_handler.php(244): AuthHandler->CreateUserInDb(Object(Userinfo), NULL)

#2 /var/www/drivecrypt/www/auth_handler.php(293): AuthHandler->GetUser(Object(Userinfo), NULL)

#3 /var/www/drivecrypt/www/index.php(48): AuthHandler->VerifyAuth() #4 {main}

thrown in /var/www/drivecrypt/www/auth_handler.php on line 214

你能幫助我嗎?

回答

2

'refresh_token'列不能爲空

+0

是的,我讀過,但爲什麼是空?你第一次啓動應用程序的情況是一樣的,表是空的,你需要插入值,爲什麼現在是空的?情況不一樣嗎?爲什麼截斷崩潰auth? –

+0

我在const FULL_AUTH_URL處將access_type = online更改爲access_type = offline,並且所有工作都再次進行。 –