使用OmniAuth时出现零对象错误(通常有效) [英] Nil object error when using OmniAuth (which normally works)
本文介绍了使用OmniAuth时出现零对象错误(通常有效)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用Omniauth时出现奇怪的错误.这似乎与我的代码无关.
I am having a weird error when using Omniauth. This appears to have little to do with my code.
这是Twitter返回一些奇怪的变形对象的结果吗?
Is this the result of Twitter returning some weird deformed object?
You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.[]
oa-oauth (0.1.6) lib/omniauth/strategies/oauth.rb:24:in `callback_phase'
oa-core (0.1.6) lib/omniauth/strategy.rb:27:in `call!'
oa-core (0.1.6) lib/omniauth/strategy.rb:19:in `call'
oa-core (0.1.6) lib/omniauth/builder.rb:30:in `call'
haml (3.0.24) lib/sass/plugin/rack.rb:41:in `call'
推荐答案
现在可以使用.我高度怀疑这是Twitter的不正确回报.
It works now. I highly suspect that it is a deformed return by Twitter.
这篇关于使用OmniAuth时出现零对象错误(通常有效)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文