注册

iOS 错误代码 303 ,网络无问题。 初始化程序后登录发现问题,求解答?

[2018/04/02 07:18:20:971]: =============EMChatClientImpl::init()==================

[2018/04/02 07:18:20:972]: dns config mode is 1

[2018/04/02 07:18:20:973]: EMConfigManager::init() 

[2018/04/02 07:18:20:974]: ----------------------begin of config----------------------

[2018/04/02 07:18:20:974]: key: dns_time value: 1530369061000

[2018/04/02 07:18:20:975]: ----------------------end of config----------------------

[2018/04/02 07:18:20:977]: addConnectionListener

[2018/04/02 07:18:20:978]: addConnectionListener

[2018/04/02 07:18:20:979]: addConnectionListener

[2018/04/02 07:18:20:979]: addConnectionListener

[2018/04/02 07:18:20:981]: registerContactListener

[2018/04/02 07:18:20:982]: onNetworkChanged(): 2

2018-04-02 07:18:20.985200+0800 MRC_TG[50259:416534] 2018-04-02 07:18:20 [DEBUG] init sdk:1.1.8, appkey:1454180327061930#kefuchannelapp53572

2018-04-02 07:18:20.992836+0800 MRC_TG[50259:416534] 2018-04-02 07:18:20 [DEBUG] read dns config string:{

  "file_version" : "1",

  "connect_keep_time" : 1440,

  "freeze_request_time" : 180,

  "update_time" : 1522622714

}

2018-04-02 07:18:20.994531+0800 MRC_TG[50259:416534] 2018-04-02 07:18:20 [DEBUG] isLoggedInBefore:0

2018-04-02 07:18:20.996445+0800 MRC_TG[50259:416534] 2018-04-02 07:18:20 [DEBUG] isLoggedInBefore:0

2018-04-02 07:18:20.997046+0800 MRC_TG[50259:416534] 2018-04-02 07:18:20 [DEBUG] dnsConfig-keepAliveTime:1440,freezeRequestTime:180,updateTime:1522622714, currentTime:1522624700.996639

[2018/04/02 07:18:20:997]: onNetworkChanged(): 2

[2018/04/02 07:18:20:998]: EMDatabase::open 

[2018/04/02 07:18:21:003]: EMDatabase::getDBVersion: 5

[2018/04/02 07:18:21:003]: EMDatabase::getDBVersion: 5

[2018/04/02 07:18:21:004]: performMigrationIfNecessary current DB version: 5

[2018/04/02 07:18:21:004]: EMSessionManager::login(): 15593393721

[2018/04/02 07:18:21:005]: getDnsListFromServer()

[2018/04/02 07:18:21:005]: buildUrl(): use default address

[2018/04/02 07:18:21:005]: buildUrl(): http://rs.easemob.com/easemob/server.json?sdk_version=3.3.5&app_key=1454180327061930%23kefuchannelapp53572&file_version=1

[2018/04/02 07:18:21:158]: 1 time retry

[2018/04/02 07:18:21:158]: DNS List size: 1715

[2018/04/02 07:18:21:159]: EMDNSManager::parseDnsServer: {"file_version":"2","resolver":{"hosts":[{"port":"80","domain":"rs.easemob.com","ip":"182.92.174.78"},{"port":"80","domain":"rs.easemob.com","ip":"112.126.66.111"},{"port":"80","domain":"rs.easemob.com","ip":"59.110.89.59"},{"protocol":"https","port":"443","domain":"rs.easemob.com"}]},"rest":{"hosts":[{"protocol":"https","port":"443","domain":"a1-vip5.easemob.com"},{"protocol":"http","port":"80","domain":"a1-vip5.easemob.com","ip":"121.196.228.24"},{"protocol":"http","port":"80","domain":"a1-vip5.easemob.com","ip":"121.196.228.49"}]},"valid_before":"1530369061","im":{"hosts":[{"port":"443","domain":"im1-vip5.easemob.com","ip":"120.27.187.107"},{"port":"5222","domain":"im1-vip5.easemob.com","ip":"120.55.205.224"},{"port":"443","domain":"im1-vip5.easemob.com","ip":"120.55.205.224"},{"port":"5222","domain":"im1-vip5.easemob.com","ip":"120.27.187.107"}]},"deploy_name":"vip5","tcp_resolver":{"hosts":[{"port":"2020","domain":"rs.easemob.com","ip":"59.110.89.59"},{"port":"2020","domain":"rs.easemob.com","ip":"112.126.66.111"},{"port":"2020","domain":"rs.easemob.com","ip":"182.92.174.78"}]},"msync-im":{"hosts":[{"port":"443","domain":"msync-im1-vip5.easemob.com","ip":"101.37.226.88"},{"port":"443","domain":"msync-im1-vip5.easemob.com","ip":"101.37.228.103"},{"port":"443","domain":"msync-im1-vip5.easemob.com","ip":"101.37.228.109"}]},"xmpp":{"hosts":[{"protocol":"http","port":"80","domain":"im-api-vip5.easemob.com","ip":"im-api-vip5.easemob.com"},{"protocol":"http","port":"5280","domain":"im-api-vip5.easemob.com","ip":"121.196.228.49"},{"protocol":"http","port":"5280","domain":"im-api-vip5.easemob.com","ip":"121.196.228.24"},{"protocol":"https","port":"443","domain":"im-api-vip5.easemob.com"}]}}

[2018/04/02 07:18:21:162]: current time: 1522624701162

[2018/04/02 07:18:21:163]: valid time: 1530369061000

[2018/04/02 07:18:21:163]: saveConfigs()

[2018/04/02 07:18:21:164]: write to config file: {

    "dns_time":"1530369061000"

}

[2018/04/02 07:18:21:165]: ranomOffer

[2018/04/02 07:18:21:165]: fetchToken()

[2018/04/02 07:18:21:165]: restBaseUrl()

[2018/04/02 07:18:21:166]: EMDNSManager::getCurrentHost: type: 3

[2018/04/02 07:18:21:166]: EMSessionManager::checkDNS()

[2018/04/02 07:18:21:166]: EMDNSManager::getHost: type: 3

[2018/04/02 07:18:21:166]: current host: domain: a1-vip5.easemob.com port: 443

[2018/04/02 07:18:21:166]: fetchTokenForUser()https://a1-vip5.easemob.com:443/1454180327061930/kefuchannelapp53572/token

[2018/04/02 07:18:21:386]: [retrieve token time] 0: 0:221

[2018/04/02 07:18:21:387]: fetchToken success 

[2018/04/02 07:18:21:387]: saveToken(): user: 15593393721 time: 1522624701387

[2018/04/02 07:18:21:392]: savetoken() result: 1

[2018/04/02 07:18:21:392]: fetchEncryptionInfo()

[2018/04/02 07:18:21:392]: restBaseUrl()

[2018/04/02 07:18:21:392]: EMDNSManager::getCurrentHost: type: 3

[2018/04/02 07:18:21:392]: EMSessionManager::checkDNS()

[2018/04/02 07:18:21:392]: EMDNSManager::getHost: type: 3

[2018/04/02 07:18:21:393]: current host: domain: a1-vip5.easemob.com port: 443

[2018/04/02 07:18:21:393]: fetchEncryptionInfoForUser()https://a1-vip5.easemob.com:443/1454180327061930/kefuchannelapp53572/security

[2018/04/02 07:18:21:393]: token is valid

[2018/04/02 07:18:21:451]: fetchEncryptionInfoForUser return code : 401  response : {"error":"unauthorized","timestamp":1522624701429,"duration":0,"exception":"org.apache.shiro.authz.UnauthorizedException","error_description":"Subject does not have permission [applications:get:475aaf60-316a-11e8-bd6b-f7ec13b8d548:/securities]"} and error desc: 

[2018/04/02 07:18:21:452]: fetchToken()

[2018/04/02 07:18:21:452]: restBaseUrl()

[2018/04/02 07:18:21:452]: EMDNSManager::getCurrentHost: type: 3

[2018/04/02 07:18:21:453]: EMSessionManager::checkDNS()

[2018/04/02 07:18:21:453]: EMDNSManager::getHost: type: 3

[2018/04/02 07:18:21:453]: current host: domain: a1-vip5.easemob.com port: 443

[2018/04/02 07:18:21:453]: fetchTokenForUser()https://a1-vip5.easemob.com:443/1454180327061930/kefuchannelapp53572/token

[2018/04/02 07:18:21:498]: [retrieve token time] 0: 0: 46

[2018/04/02 07:18:21:499]: fetchToken success 

[2018/04/02 07:18:21:499]: saveToken(): user: 15593393721 time: 1522624701499

[2018/04/02 07:18:21:501]: savetoken() result: 1

[2018/04/02 07:18:21:501]: token is valid

[2018/04/02 07:18:21:564]: fetchEncryptionInfoForUser return code : 401  response : {"error":"unauthorized","timestamp":1522624701545,"duration":0,"exception":"org.apache.shiro.authz.UnauthorizedException","error_description":"Subject does not have permission [applications:get:475aaf60-316a-11e8-bd6b-f7ec13b8d548:/securities]"} and error desc: 

[2018/04/02 07:18:21:565]: fetchToken()

[2018/04/02 07:18:21:565]: restBaseUrl()

[2018/04/02 07:18:21:565]: EMDNSManager::getCurrentHost: type: 3

[2018/04/02 07:18:21:566]: EMSessionManager::checkDNS()

[2018/04/02 07:18:21:566]: EMDNSManager::getHost: type: 3

[2018/04/02 07:18:21:566]: current host: domain: a1-vip5.easemob.com port: 443

[2018/04/02 07:18:21:566]: fetchTokenForUser()https://a1-vip5.easemob.com:443/1454180327061930/kefuchannelapp53572/token

[2018/04/02 07:18:21:613]: [retrieve token time] 0: 0: 48

[2018/04/02 07:18:21:614]: fetchToken success 

[2018/04/02 07:18:21:614]: saveToken(): user: 15593393721 time: 1522624701614

[2018/04/02 07:18:21:616]: savetoken() result: 1

[2018/04/02 07:18:21:616]: fetchEncryptionInfo failure : 303

[2018/04/02 07:18:21:616]: fetch encryption info from server failed status: 303

[2018/04/02 07:18:21:617]: EMDNSManager::getCurrentHost: type: 2

[2018/04/02 07:18:21:617]: EMSessionManager::checkDNS()

[2018/04/02 07:18:21:617]: EMDNSManager::getHost: type: 2

[2018/04/02 07:18:21:617]: current host: domain: 101.37.226.88 port: 443

[2018/04/02 07:18:21:617]: token is valid

[2018/04/02 07:18:21:617]: token status:  0

[2018/04/02 07:18:21:617]: setServer: 101.37.226.88

[2018/04/02 07:18:21:618]: Calling connect...

[2018/04/02 07:18:21:618]: doConnect()

[2018/04/02 07:18:21:618]: current connectState: 0

[2018/04/02 07:18:21:618]: log: level: 0, area: 1, ChatClient::connect() 

[2018/04/02 07:18:21:619]: log: level: 0, area: 2, getSocket(): 10

[2018/04/02 07:18:21:619]: log: level: 1, area: 2, connectSocket(): start to connecting...

[2018/04/02 07:18:21:701]: log: level: 1, area: 2, connectSocket(): connect finished

[2018/04/02 07:18:21:703]: log: level: 1, area: 1, SEND:

{ verison : MSYNC_V1, guid : 1454180327061930#kefuchannelapp53572_15593393721@easemob.com/mobile, compress_algorimth : 0, command : PROVISION, encrypt_type : [ 0 ], payload : { os_type : 0, version : 3.3.5, device_uuid : C4D6985A-F042-46AA-9EFE-303D008F3ABA, is_manual_login : true, device_name : SUN_Mac_Book, auth : *** } }




[2018/04/02 07:18:21:706]: Calling connect result: 1

[2018/04/02 07:18:21:706]: start startReceive()

[2018/04/02 07:18:21:767]: log: level: 1, area: 1, RECV:

{ verison : MSYNC_V1, guid : 1454180327061930#kefuchannelapp53572_15593393721@easemob.com/mobile, command : PROVISION, payload : { status : { error_code : 3, reason : no auth } } }




[2018/04/02 07:18:21:768]: log: level: 1, area: 2, cleanup() 10

[2018/04/02 07:18:21:769]: log: level: 1, area: 2, closeSocket() 10

[2018/04/02 07:18:21:769]: log: level: 2, area: 1, handleDisconnect:3

[2018/04/02 07:18:21:770]: EMSessionManager::onDisConnect(): 3

[2018/04/02 07:18:21:770]: stopReceive()

[2018/04/02 07:18:21:770]: log: level: 0, area: 1, ChatClient::disconnect()

[2018/04/02 07:18:21:771]: log: level: 1, area: 2, cleanup() -1

[2018/04/02 07:18:21:771]: log: level: 2, area: 1, handleDisconnect:14

[2018/04/02 07:18:21:771]: ConnStreamClosed, reconnect using different server

[2018/04/02 07:18:21:772]: login failed: 303

[2018/04/02 07:18:21:772]: [im login time] 0: 0:154

[2018/04/02 07:18:21:772]: login return: 303
已邀请:

要回复问题请先登录注册