Facebook登录后,在play 2.0.2中使用securesocial模块时出现TimeoutException

时间:2012-11-20 17:09:52

标签: playframework-2.0 securesocial

我正在使用带有play 2.0.2的securesoial 2.9.1,2.0.6版本。在通过facebook成功登录到特定网址后重定向时,我收到了一个承诺超时异常。

url在routes文件中指定,该url写在securesocial.conf文件中,如下所示:

onLoginGoTo=/after-redirect

完整堆栈跟踪是:

[debug] application - authorizationUrl = https://graph.facebook.com/oauth/authorize
[debug] application - Redirecting to : [https://graph.facebook.com/oauth/authorize?scope=email&client_id=XYZ&redirect_uri=http%3A%2F%2Flab.verchaska.com%2Ftest%2Fauthenticate%2Ffacebook&response_type=code&state=ab113e0b-37cc-4849-b84e-a84a5fe7f135]
[error] application -

! @6cd55ef0a - Internal server error, for request [GET /test/authenticate/facebook?state=ab113e0b-37cc-4849-b84e-a84a5fe7f135&code=AQDkiVlAMuutA5KEt1fA17fFUjh1RSQJ7MpLwlyfr10PK35izqZq5JXTgWQhIvpQv7GwrK5iMBz_VjpIRd9Qy784YczSZjudgHKTj1M3DOjRZAg5le1wHeWqwClQ4isZf9oRcmPVuswxG8uvTSQNZzUEjrAQZ5tQ0o67N5Xp0kc2kAjJKnf906nFaTmllYAgTP_D92fkI6fhGuVkDVrlnkiB] ->

play.core.ActionInvoker$$anonfun$receive$1$$anon$1: Execution exception [[TimeoutException: Promise timed out after 10000 : MILLISECONDS]]
        at play.core.ActionInvoker$$anonfun$receive$1.apply(Invoker.scala:134) [play_2.9.1-2.0.4.jar:2.0.4]
        at play.core.ActionInvoker$$anonfun$receive$1.apply(Invoker.scala:115) [play_2.9.1-2.0.4.jar:2.0.4]
        at akka.actor.Actor$class.apply(Actor.scala:318) [akka-actor.jar:2.0.2]
        at play.core.ActionInvoker.apply(Invoker.scala:113) [play_2.9.1-2.0.4.jar:2.0.4]
        at akka.actor.ActorCell.invoke(ActorCell.scala:626) [akka-actor.jar:2.0.2]
        at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:197) [akka-actor.jar:2.0.2]
Caused by: java.util.concurrent.TimeoutException: Promise timed out after 10000 : MILLISECONDS
        at play.api.libs.concurrent.STMPromise$$anonfun$await$1.apply(Promise.scala:158) ~[play_2.9.1-2.0.4.jar:2.0.4]
        at play.api.libs.concurrent.STMPromise$$anonfun$await$1.apply(Promise.scala:154) ~[play_2.9.1-2.0.4.jar:2.0.4]
        at scala.concurrent.stm.ccstm.InTxnImpl.runBlock(InTxnImpl.scala:538) ~[scala-stm_2.9.1.jar:0.5]
        at scala.concurrent.stm.ccstm.InTxnImpl.topLevelAttempt(InTxnImpl.scala:494) ~[scala-stm_2.9.1.jar:0.5]
        at scala.concurrent.stm.ccstm.InTxnImpl.topLevelAtomicImpl(InTxnImpl.scala:365) ~[scala-stm_2.9.1.jar:0.5]
        at scala.concurrent.stm.ccstm.InTxnImpl.atomic(InTxnImpl.scala:244) ~[scala-stm_2.9.1.jar:0.5]

我有自己的域名,我没有使用localhost:9000。

0 个答案:

没有答案