运行easemob_server_python.py报错。能获取到admin token,但是接下来就不行了。
Get org admin token: YWMtHPcXYonQEeWDJcFVFfvVDAAAAVI0h9bVvw7_4lighuzBh5futfDc03zdtfs
Traceback (most recent call last):
File "D:\code\code\环信\emchat-server-examples-1.0\emchat-server-examples-1.0\emchat-server-python\easemob_server_python.py", line 224, in
print "Get app admin token:" + app_admin_auth.get_token()
File "D:\code\code\环信\emchat-server-examples-1.0\emchat-server-examples-1.0\emchat-server-python\easemob_server_python.py", line 85, in get_token
return self.token.token
AttributeError: 'NoneType' object has no attribute 'token'
info.json
Traceback (most recent call last):
File "D:\code\code\环信\emchat-server-examples-1.0\emchat-server-examples-1.0\emchat-server-python\easemob_server_python.py", line 224, in
print "Get app admin token:" + app_admin_auth.get_token()
File "D:\code\code\环信\emchat-server-examples-1.0\emchat-server-examples-1.0\emchat-server-python\easemob_server_python.py", line 85, in get_token
return self.token.token
AttributeError: 'NoneType' object has no attribute 'token'
info.json
{是不是我的配置文件写错了呢?org写什么呢。
"appkey" : "olddesktop#olddesktop",
"org" : "bbst",
"admin" : {
"username" : "账号",
"password" : "密码"
},
"app" :
{
"name" : "olddesktop",
"credentials" : {
"client_id" : "我的ID",
"client_secret" : "我的secret"
},
"admin" : {
"username" : "我的账号",
"password" : "我的密码"
}
}
}
没有找到相关结果
已邀请:
1 个回复
lizg - ……
赞同来自: swordfish