注册

运行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
{
"appkey" : "olddesktop#olddesktop",
"org" : "bbst",
"admin" : {
"username" : "账号",
"password" : "密码"
},
"app" :
{
"name" : "olddesktop",
"credentials" : {
"client_id" : "我的ID",
"client_secret" : "我的secret"
},
"admin" : {
"username" : "我的账号",
"password" : "我的密码"
}
}
}
是不是我的配置文件写错了呢?org写什么呢。
已邀请:

lizg - ……

赞同来自: swordfish

org_name#app_name  这个就是你的appkey,以#号区分

要回复问题请先登录注册