Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
错误可能在哪里?
我的代码很常见。
http://pastebin.com/cFfNNGm5 http://wklej.org/id/518600/ < - 就是这样
还有一些我的代码:
http://wklej.org/id/518601/
没有进口
您似乎不恰当地添加了身份验证:resource.Resource(... authentication=MyAuthenticationClass)而不是resource.Resource(..., authentication=MyAuthenticationClass()). 类型不匹配(atype而不是它的实例),因此是整个问题。
resource.Resource(... authentication=MyAuthenticationClass)
resource.Resource(..., authentication=MyAuthenticationClass())
type