0

我首先在 Rails 中的 Facebook 登录回调中收到此错误。我不记得它的其余部分,但在那之后,我无法重现它。

现在,当我进行相同的登录尝试时出现错误

if user = User.find_from_omniauth(env["omniauth.auth"])

这将错误放在

User.where(auth.slice(:provider, :uid)).limit(1).first

它只是说 Node with id 133354Neo4j::Session::CypherError in SessionsController#create

这是基于http://railscasts.com/episodes/360-facebook-authentication的客户端授权的一些​​代码

jQuery ->
  $('body').prepend('<div id="fb-root"></div>')

  $.ajax
    url: "#{window.location.protocol}//connect.facebook.net/en_US/all.js"
    dataType: 'script'
    cache: true


window.fbAsyncInit = ->
  FB.init(appId: '<%= ENV["FACEBOOK_KEY"] %>', cookie: true)

  $('#sign_in').click (e) ->
    e.preventDefault()
    FB.login (response) ->
      window.location = '/auth/facebook/callback' if response.authResponse
    , scope: "public_profile,email,user_birthday,user_friends"


  $('#sign_out').click (e) ->
    FB.getLoginStatus (response) ->
      FB.logout() if response.authResponse
    true

  if $('#sign_out').length > 0
    Fb.getLoginStatus (response) ->
      window.location = $('#sign_out').attr("href") if !response.authResponse

不完全确定从哪里开始调试?

更新:似乎我什至无法访问http://localhost:7474/browser/当我尝试拉起所有节点时,它给了我“未知错误”。第一个错误对数据库造成了严重破坏??

4

0 回答 0