极光推送报错JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed

标签: #<Tag:0x00007f658a23a338>

--------------------------- JPush Log ----------------------------

--------------------JPush SDK Version:3.2.4–build:99----------

--------------------JCore Lib Version:2.1.2–build:90----------

----------------------------------------------------------------

sdk版本信息如上,初始化SDK后控制台一直打印JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed

是哪里集成的有问题吗?项目中没有搜到JIGUANGAddressAnalysisController这个类,我要怎么解决这个问题呢?

请获取下详细的log

仅根据这个看只能看你检查下网络

你好,极光推送会有自己的log文件吗?我在沙盒里没有看到jpush的文件名,本来想用附件上传,但是不知道为啥总是上传失败,没有提示失败原因,我就直接粘贴吧。

2019-12-03 10:28:56.007856+0800 PICCRisk[22673:7326724] [framework] CoreUI: RunTimeThemeRefForBundleIdentifierAndName() couldn’t find Assets.car in bundle with identifier: ‘(null)’
2019-12-03 10:28:56.008080+0800 PICCRisk[22673:7326724] [framework] CoreUI: RunTimeThemeRefForBundleIdentifierAndName() couldn’t find Assets.car in bundle with identifier: ‘(null)’
2019-12-03 10:28:56.089618+0800 PICCRisk[22673:7326990] | JIGUANG | I - [JIGUANGService]
--------------------------- JPush Log ----------------------------
--------------------JPush SDK Version:3.2.4–build:99----------
--------------------JCore Lib Version:2.1.2–build:90----------

Optional("")
http://10.10.2.241:7777
2019-12-03 10:28:56.230073+0800 PICCRisk[22673:7326997] | JIGUANG | I - [JIGUANGConnectManager] Action - closeConection
2019-12-03 10:28:56.234945+0800 PICCRisk[22673:7326995] [] nehelper sent invalid result code [1] for Wi-Fi information request
2019-12-03 10:28:56.237144+0800 PICCRisk[22673:7326995] [] nehelper sent invalid result code [1] for Wi-Fi information request
2019-12-03 10:28:56.237547+0800 PICCRisk[22673:7326994] | JIGUANG | I - [JIGUANGClientController] Action - jpush setup
2019-12-03 10:28:58.241784+0800 PICCRisk[22673:7326994] | JIGUANG | W - [JIGUANGDeviceTokenController] Not get deviceToken yet. After successful login, a custom message can be sent, but the APNs notification cannot. Until the deviceToken is obtained and reported successfully, the APNs notification can be used normally.
2019-12-03 10:29:00.255167+0800 PICCRisk[22673:7326987] | JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed
2019-12-03 10:29:12.618403+0800 PICCRisk[22673:7326996] Connection 1: received failure notification
2019-12-03 10:29:12.618567+0800 PICCRisk[22673:7326996] Connection 1: failed to connect 12:8, reason -1
2019-12-03 10:29:12.618734+0800 PICCRisk[22673:7326996] Connection 1: encountered error(12:8)
2019-12-03 10:29:12.619176+0800 PICCRisk[22673:7326989] | JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed
2019-12-03 10:29:12.624827+0800 PICCRisk[22673:7326990] | JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed
2019-12-03 10:29:13.854058+0800 PICCRisk[22673:7326996] Connection 3: received failure notification
2019-12-03 10:29:13.854231+0800 PICCRisk[22673:7326996] Connection 3: failed to connect 12:8, reason -1
2019-12-03 10:29:13.854303+0800 PICCRisk[22673:7326996] Connection 3: encountered error(12:8)
2019-12-03 10:29:13.854500+0800 PICCRisk[22673:7326990] Task <29967486-1D2C-4688-9EC0-F4BE88AC35B9>.<0> HTTP load failed, 0/0 bytes (error code: -1003 [12:8])
2019-12-03 10:29:13.857061+0800 PICCRisk[22673:7326987] NSURLConnection finished with error - code -1003
2019-12-03 10:29:13.857131+0800 PICCRisk[22673:7326990] Task <0DA47127-839E-4ED9-B32C-5B2FAECDC11C>.<1> HTTP load failed, 0/0 bytes (error code: -1003 [12:8])

2019-12-03 10:30:08.162603+0800 PICCRisk[22673:7326994] | JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed
2019-12-03 10:30:08.184184+0800 PICCRisk[22673:7327385] | JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed
2019-12-03 10:30:08.202461+0800 PICCRisk[22673:7327386] [] nehelper sent invalid result code [1] for Wi-Fi information request
2019-12-03 10:30:08.214801+0800 PICCRisk[22673:7326990] [] nehelper sent invalid result code [1] for Wi-Fi information request
2019-12-03 10:30:11.203581+0800 PICCRisk[22673:7326990] | JIGUANG | I - [JIGUANGConnectManager] Action - closeConection
2019-12-03 10:30:12.205344+0800 PICCRisk[22673:7327386] | JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed
2019-12-03 10:30:14.215428+0800 PICCRisk[22673:7326994] | JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed
2019-12-03 10:30:15.231488+0800 PICCRisk[22673:7327386] Connection 4: received failure notification
2019-12-03 10:30:15.231663+0800 PICCRisk[22673:7327386] Connection 4: failed to connect 12:8, reason -1
2019-12-03 10:30:15.231749+0800 PICCRisk[22673:7327386] Connection 4: encountered error(12:8)
2019-12-03 10:30:15.234264+0800 PICCRisk[22673:7326994] Task <1E96618C-9B32-4B04-9285-DBBC868DDA7E>.<0> HTTP load failed, 0/0 bytes (error code: -1003 [12:8])
2019-12-03 10:30:15.236172+0800 PICCRisk[22673:7326994] NSURLConnection finished with error - code -1003
2019-12-03 10:30:15.236951+0800 PICCRisk[22673:7327386] Connection 5: received failure notification
2019-12-03 10:30:15.237141+0800 PICCRisk[22673:7327386] Connection 5: failed to connect 12:8, reason -1
2019-12-03 10:30:15.237213+0800 PICCRisk[22673:7326990] [AMapFoundationKit][Info] : 错误信息:未能找到使用指定主机名的服务器。
2019-12-03 10:30:15.237248+0800 PICCRisk[22673:7327386] Connection 5: encountered error(12:8)
2019-12-03 10:30:15.240607+0800 PICCRisk[22673:7326989] Task .<0> HTTP load failed, 0/0 bytes (error code: -1003 [12:8])
2019-12-03 10:30:15.240963+0800 PICCRisk[22673:7326989] NSURLConnection finished with error - code -1003
2019-12-03 10:30:15.242624+0800 PICCRisk[22673:7326990] [AMapFoundationKit][Info] : 错误信息:未能找到使用指定主机名的服务器。
2019-12-03 10:30:16.212365+0800 PICCRisk[22673:7326990] | JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed
2019-12-03 10:30:18.319832+0800 PICCRisk[22673:7327385] | JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed
2019-12-03 10:30:23.318563+0800 PICCRisk[22673:7326990] | JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed
2019-12-03 10:30:25.325536+0800 PICCRisk[22673:7326989] | JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed
2019-12-03 10:30:34.337827+0800 PICCRisk[22673:7326989] | JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed
2019-12-03 10:30:36.334657+0800 PICCRisk[22673:7326989] | JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed
2019-12-03 10:30:36.335584+0800 PICCRisk[22673:7326989] | JIGUANG | I - [JIGUANGConnectManager] Action - closeConection
2019-12-03 10:30:38.347415+0800 PICCRisk[22673:7326994] | JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed
2019-12-03 10:30:40.357443+0800 PICCRisk[22673:7326989] | JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed
2019-12-03 10:30:42.357543+0800 PICCRisk[22673:7326994] | JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed
2019-12-03 10:30:50.352878+0800 PICCRisk[22673:7326994] | JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed
2019-12-03 10:30:52.384812+0800 PICCRisk[22673:7326994] | JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed
2019-12-03 10:30:54.361583+0800 PICCRisk[22673:7326994] | JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed
2019-12-03 10:31:02.361389+0800 PICCRisk[22673:7326994] | JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed
2019-12-03 10:31:02.362719+0800 PICCRisk[22673:7326994] | JIGUANG | I - [JIGUANGConnectManager] Action - closeConection
2019-12-03 10:31:07.370355+0800 PICCRisk[22673:7326989] | JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed
2019-12-03 10:31:09.380260+0800 PICCRisk[22673:7326989] | JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed
2019-12-03 10:31:11.376956+0800 PICCRisk[22673:7326989] | JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed
2019-12-03 10:31:23.387693+0800 PICCRisk[22673:7326990] | JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed
2019-12-03 10:31:25.389315+0800 PICCRisk[22673:7326989] | JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed
2019-12-03 10:31:26.389922+0800 PICCRisk[22673:7326989] | JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed
2019-12-03 10:31:33.394572+0800 PICCRisk[22673:7326994] | JIGUANG | I - [JIGUANGConnectManager] Action - closeConection
2019-12-03 10:31:38.394016+0800 PICCRisk[22673:7326990] | JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed
2019-12-03 10:31:53.402735+0800 PICCRisk[22673:7326989] | JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed
2019-12-03 10:31:55.418561+0800 PICCRisk[22673:7326989] | JIGUANG | E - [JIGUANGAddressAnalysisController] DNS request failed

你用的是 IDFA 版本的还是普通版本的

连的是 WiFi 还是 4 G,切换一个网络看一下。

你好,直接用cocoapods集成的,不知道是不是IDFA版本的:joy:
pod ‘JPush’
用的wifi,测试机不能连4g
测试环境和生产环境,都会报这个问题,
wifi可以连外网,

你试一下自己开 4 G 的热点测试一下,这边怀疑你们的 WiFi 有限制。

你好,我们的网络做了屏蔽,用4g的热点不会再报这个问题了,谢谢。