注册

android 集成环信SDK登录:organization_application_not_found

fetchTokenForUser return code : 404  response : {"error":"organization_application_not_found","timestamp":1490681466115,"duration":0,"exception":"org.apache.usergrid.rest.exceptions.OrganizationApplicationNotFoundException","error_description":"Could not find application for hyphenate-demo/chatdemoui from URI: hyphenate-demo/chatdemoui/token"} and error desc: 
URI 有具体配置的位置么
已邀请:
客户端登录去断点跟踪看下具体的error信息onerror中的参数去打印看下具体的报错
03-28 21:36:11.873 D/ONE SDK (27019): [2017/03/28 21:36:11:871]: performMigrationIfNecessary current DB version: 4

03-28 21:36:11.874 D/ONE SDK (27019): [2017/03/28 21:36:11:871]: EMSessionManager::login(): xjm19891120

03-28 21:36:11.874 D/ONE SDK (27019): [2017/03/28 21:36:11:871]: getDnsListFromServer()

03-28 21:36:11.874 D/ONE SDK (27019): [2017/03/28 21:36:11:871]: EMDNSManager::getHost: type: 0

03-28 21:36:11.874 D/ONE SDK (27019): [2017/03/28 21:36:11:871]: current host: domain: 59.110.89.59 port: 80

03-28 21:36:11.875 D/ONE SDK (27019): [2017/03/28 21:36:11:871]: buildUrl(): http://59.110.89.59/easemob/server.json?sdk_version=3.3.0&app_key=hyphenate-demo%23chatdemoui&file_version=74

03-28 21:36:11.875 D/ONE SDK (27019): [2017/03/28 21:36:11:871]: httprequest perform: http://59.110.89.59/easemob/server.json?sdk_version=3.3.0&app_key=hyphenate-demo%23chatdemoui&file_version=74

03-28 21:36:11.876 I/XiaomiFirewall( 1944): firewall pkgName:com.aspconf.client, result:0x0

03-28 21:36:12.063 D/ONE SDK (27019): [2017/03/28 21:36:12:063]: [EMARHttpAPI] httpExecute code: 200

03-28 21:36:12.063 D/ONE SDK (27019): [2017/03/28 21:36:12:063]: 1 time retry

03-28 21:36:12.064 D/ONE SDK (27019): [2017/03/28 21:36:12:063]: DNS List size: 3002

03-28 21:36:12.064 D/ONE SDK (27019): [2017/03/28 21:36:12:063]: EMDNSManager::parseDnsServer: {"file_version":"74","resolver":{"hosts":[{"port":"80","domain":"rs.easemob.com","ip":"120.26.17.225"},{"port":"80","domain":"rs.easemob.com","ip":"120.26.15.207"},{"port":"80","domain":"rs.easemob.com","ip":"112.126.66.111"},{"protocol":"https","port":"443","domain":"rs3.easemob.com"},{"port":"80","domain":"rs.easemob.com","ip":"59.110.89.59"},{"protocol":"https","port":"443","domain":"rs2.easemob.com"},{"port":"80","domain":"rs.easemob.com","ip":"182.92.174.78"},{"protocol":"https","port":"443","domain":"rs4.easemob.com"},{"protocol":"https","port":"443","domain":"rs.easemob.com"},{"protocol":"https","port":"443","domain":"rs1.easemob.com"},{"port":"80","domain":"rs.easemob.com","ip":"116.62.83.103"}]},"rest":{"hosts":[{"protocol":"https","port":"443","domain":"a6.easemob.com"},{"protocol":"http","port":"80","domain":"a1.easemob.com","ip":"182.92.0.214"},{"protocol":"https","port":"443","domain":"a5.easemob.com"},{"protocol":"https","port":"443","dom

03-28 21:36:12.065 I/DpmTcmClient(27019): RegisterTcmMonitor from: org.apache.http.impl.conn.TcmIdleTimerMonitor

03-28 21:36:12.065 D/ONE SDK (27019): [2017/03/28 21:36:12:063]: current time: 1490708172063

03-28 21:36:12.065 D/ONE SDK (27019): [2017/03/28 21:36:12:063]: valid time: 1498418591000

03-28 21:36:12.066 D/ONE SDK (27019): [2017/03/28 21:36:12:063]: saveConfigs()

03-28 21:36:12.066 D/ONE SDK (27019): [2017/03/28 21:36:12:063]: write to config file: {

03-28 21:36:12.066 D/ONE SDK (27019):     "dns_time":"1498418591000"

03-28 21:36:12.066 D/ONE SDK (27019): }

03-28 21:36:12.067 D/ONE SDK (27019): [2017/03/28 21:36:12:063]: ranomOffer

03-28 21:36:12.067 D/ONE SDK (27019): [2017/03/28 21:36:12:063]: imServer before random: 

03-28 21:36:12.067 D/ONE SDK (27019): [2017/03/28 21:36:12:064]: 59.110.86.75

03-28 21:36:12.067 D/ONE SDK (27019): [2017/03/28 21:36:12:064]: 60.205.131.133

03-28 21:36:12.068 D/ONE SDK (27019): [2017/03/28 21:36:12:064]: 59.110.86.78

03-28 21:36:12.068 D/ONE SDK (27019): [2017/03/28 21:36:12:064]: 59.110.86.76

03-28 21:36:12.069 D/ONE SDK (27019): [2017/03/28 21:36:12:064]: 60.205.109.58

03-28 21:36:12.069 D/ONE SDK (27019): [2017/03/28 21:36:12:064]: 59.110.86.77

03-28 21:36:12.069 D/ONE SDK (27019): [2017/03/28 21:36:12:064]: randomServers 

03-28 21:36:12.069 D/ONE SDK (27019): [2017/03/28 21:36:12:064]: randomServers 

03-28 21:36:12.070 D/ONE SDK (27019): [2017/03/28 21:36:12:064]: randomServers 

03-28 21:36:12.070 D/ONE SDK (27019): [2017/03/28 21:36:12:064]: randomServers 

03-28 21:36:12.070 D/ONE SDK (27019): [2017/03/28 21:36:12:064]: imServer after random: 

03-28 21:36:12.070 D/ONE SDK (27019): [2017/03/28 21:36:12:064]: 60.205.109.58

03-28 21:36:12.071 D/ONE SDK (27019): [2017/03/28 21:36:12:064]: 59.110.86.75

03-28 21:36:12.071 D/ONE SDK (27019): [2017/03/28 21:36:12:064]: 60.205.131.133

03-28 21:36:12.071 D/ONE SDK (27019): [2017/03/28 21:36:12:064]: 59.110.86.76

03-28 21:36:12.071 D/ONE SDK (27019): [2017/03/28 21:36:12:064]: 59.110.86.78

03-28 21:36:12.072 D/ONE SDK (27019): [2017/03/28 21:36:12:064]: 59.110.86.77

03-28 21:36:12.072 D/ONE SDK (27019): [2017/03/28 21:36:12:064]: fetchToken()

03-28 21:36:12.072 D/ONE SDK (27019): [2017/03/28 21:36:12:064]: restBaseUrl()

03-28 21:36:12.073 D/ONE SDK (27019): [2017/03/28 21:36:12:064]: EMDNSManager::getCurrentHost: type: 3

03-28 21:36:12.073 D/ONE SDK (27019): [2017/03/28 21:36:12:064]: EMSessionManager::checkDNS()

03-28 21:36:12.073 D/ONE SDK (27019): [2017/03/28 21:36:12:064]: EMDNSManager::getHost: type: 3

03-28 21:36:12.073 D/ONE SDK (27019): [2017/03/28 21:36:12:064]: current host: domain: 182.92.0.214 port: 80

03-28 21:36:12.073 D/ONE SDK (27019): [2017/03/28 21:36:12:064]: fetchTokenForUser()http://182.92.0.214:80/hyphenate-demo/chatdemoui/token

03-28 21:36:12.073 D/ONE SDK (27019): [2017/03/28 21:36:12:064]: httprequest perform: http://182.92.0.214:80/hyphenate-demo/chatdemoui/token

03-28 21:36:12.244 D/ONE SDK (27019): [2017/03/28 21:36:12:243]: [EMARHttpAPI] httpExecute code: 404

03-28 21:36:12.244 D/ONE SDK (27019): [2017/03/28 21:36:12:243]: fetchTokenForUser return code : 404  response : {"error":"organization_application_not_found","timestamp":1490708172685,"duration":0,"exception":"org.apache.usergrid.rest.exceptions.OrganizationApplicationNotFoundException","error_description":"Could not find application for hyphenate-demo/chatdemoui from URI: hyphenate-demo/chatdemoui/token"} and error desc: 

03-28 21:36:12.245 D/ONE SDK (27019): [2017/03/28 21:36:12:244]: [retrieve token time] 0: 0:179

03-28 21:36:12.245 D/ONE SDK (27019): [2017/03/28 21:36:12:244]: fetchToken can't fetch user token: 204

03-28 21:36:12.245 D/ONE SDK (27019): [2017/03/28 21:36:12:244]: [EMClient] do stop service

03-28 21:36:12.254 D/aspire  (27019): code :204 error: User dosn't exist
在demo是可以登录的那自己的项目是使用的自己的APPkey还是使用的环信demo的appkey呢?如果是使用自己的appkey那需要登录注册在自己appkey下的账号才可以的,demo注册的是demo的appkey下的账号
注册的用户是在哪个appkey注册的,确定是注册成功的吗
 

要回复问题请先登录注册