AppsFlyerSDK / appsflyer-android-sdk

AppsFlyer Android SDK
Other
9 stars 2 forks source link

java.security.cert.CertPathValidatorException: #21

Closed pramodcs47 closed 3 years ago

pramodcs47 commented 3 years ago

unable to initalize the appsflyer sdk. Below are the full logs:

2021-04-09 14:00:29.954 2987-4773/com.sonyliv.smapleevents I/AppsFlyer_6.0.0: (4916902) [Timer-4] onBecameBackground 2021-04-09 14:00:29.955 2987-4773/com.sonyliv.smapleevents I/AppsFlyer_6.0.0: (4916903) [Timer-4] callStatsBackground background call 2021-04-09 14:00:29.955 2987-4773/com.sonyliv.smapleevents I/AppsFlyer_6.0.0: (4916903) [Timer-4] app went to background 2021-04-09 14:00:29.955 2987-4773/com.sonyliv.smapleevents D/AppsFlyer_6.0.0: (4916903) [Timer-4] Stats call is disabled, ignore ... 2021-04-09 14:00:29.955 2987-4773/com.sonyliv.smapleevents D/AppsFlyer_6.0.0: (4916903) [Timer-4] RD status is OFF 2021-04-09 14:00:29.955 2987-4773/com.sonyliv.smapleevents V/AppsFlyer_6.0.0: (4916903) [Timer-4] shut downing executor ... 2021-04-09 14:00:32.095 2987-2987/com.sonyliv.smapleevents D/AppsFlyer_6.0.0: (4919042) [main] registerValidatorListener called 2021-04-09 14:00:32.106 2987-3026/com.sonyliv.smapleevents I/AppsFlyer_6.0.0: (4919054) [pool-4-thread-1] onBecameForeground 2021-04-09 14:00:32.107 2987-3026/com.sonyliv.smapleevents I/AppsFlyer_6.0.0: (4919055) [pool-4-thread-1] Last Launch attempt: 2021/04/09 08:06:00.995 +0000; Last successful Launch event: 1969/12/31 23:59:59.999 +0000; Sending launch (+1471111 ms) 2021-04-09 14:00:32.191 2987-4816/com.sonyliv.smapleevents I/AppsFlyer_6.0.0: (4919139) [Thread-18] sendWithEvent from activity: com.sonyliv.smapleevents.MyApp 2021-04-09 14:00:32.191 2987-4816/com.sonyliv.smapleevents I/AppsFlyer_6.0.0: (4919139) [Thread-18] Trying to fetch GAID.. 2021-04-09 14:00:32.192 2987-4816/com.sonyliv.smapleevents D/AppsFlyer_6.0.0: (4919140) [Thread-18] Failed resolution of: Lcom/google/android/gms/common/GoogleApiAvailability; 2021-04-09 14:00:32.415 2987-4814/com.sonyliv.smapleevents I/AppsFlyer_6.0.0: (4919363) [Thread-17] sendWithEvent from activity: com.sonyliv.smapleevents.MyApp 2021-04-09 14:00:32.415 2987-4814/com.sonyliv.smapleevents I/AppsFlyer_6.0.0: (4919363) [Thread-17] Trying to fetch GAID.. 2021-04-09 14:00:32.415 2987-4814/com.sonyliv.smapleevents D/AppsFlyer_6.0.0: (4919363) [Thread-17] Failed resolution of: Lcom/google/android/gms/common/GoogleApiAvailability; 2021-04-09 14:00:32.827 2987-2987/com.sonyliv.smapleevents W/iv.smapleevent: Long monitor contention with owner Thread-18 (4816) at android.view.Display android.app.ResourcesManager.getAdjustedDisplay(int, android.view.DisplayAdjustments)(ResourcesManager.java:315) waiters=0 in int android.app.ActivityThread.getIntCoreSetting(java.lang.String, int) for 465ms 2021-04-09 14:00:32.828 2987-4814/com.sonyliv.smapleevents W/iv.smapleevent: Long monitor contention with owner Thread-18 (4816) at android.view.Display android.app.ResourcesManager.getAdjustedDisplay(int, android.view.DisplayAdjustments)(ResourcesManager.java:315) waiters=1 in android.app.LoadedApk android.app.ActivityThread.getPackageInfo(java.lang.String, android.content.res.CompatibilityInfo, int, int) for 412ms 2021-04-09 14:00:33.004 2987-4814/com.sonyliv.smapleevents I/AppsFlyer_6.0.0: (4919952) [Thread-17] sendTrackingWithEvent: Launch 2021-04-09 14:00:33.014 2987-4814/com.sonyliv.smapleevents W/AppsFlyer_6.0.0: (4919962) [Thread-17] Exception while collecting facebook's attribution ID. 2021-04-09 14:00:33.014 2987-4814/com.sonyliv.smapleevents D/AppsFlyer_6.0.0: (4919962) [Thread-17] WARNING: Google play services is unavailable. 2021-04-09 14:00:33.015 2987-4814/com.sonyliv.smapleevents I/AppsFlyer_6.0.0: (4919963) [Thread-17] IMEI was not collected. 2021-04-09 14:00:33.015 2987-4814/com.sonyliv.smapleevents D/AppsFlyer_6.0.0: (4919963) [Thread-17] WARNING: Google play services is unavailable. 2021-04-09 14:00:33.015 2987-4814/com.sonyliv.smapleevents I/AppsFlyer_6.0.0: (4919963) [Thread-17] Android ID was not collected. 2021-04-09 14:00:33.015 2987-4814/com.sonyliv.smapleevents I/AppsFlyerOaid5.4.4: Fetch 0 ms 2021-04-09 14:00:33.029 2987-4814/com.sonyliv.smapleevents I/AppsFlyer_6.0.0: (4919977) [Thread-17] AppsFlyer: first launch date: 2021-04-09_070834+0000 2021-04-09 14:00:33.030 2987-4814/com.sonyliv.smapleevents D/AppsFlyer_6.0.0: (4919978) [Thread-17] didConfigureTokenRefreshService=false 2021-04-09 14:00:33.030 2987-4814/com.sonyliv.smapleevents D/AppsFlyer_6.0.0: (4919978) [Thread-17] No deep link detected 2021-04-09 14:00:33.035 2987-4816/com.sonyliv.smapleevents I/AppsFlyer_6.0.0: (4919983) [Thread-18] sendTrackingWithEvent: af_purchase 2021-04-09 14:00:33.037 2987-4816/com.sonyliv.smapleevents W/AppsFlyer_6.0.0: (4919985) [Thread-18] Exception while collecting facebook's attribution ID. 2021-04-09 14:00:33.038 2987-4816/com.sonyliv.smapleevents D/AppsFlyer_6.0.0: (4919986) [Thread-18] WARNING: Google play services is unavailable. 2021-04-09 14:00:33.038 2987-4816/com.sonyliv.smapleevents I/AppsFlyer_6.0.0: (4919986) [Thread-18] IMEI was not collected. 2021-04-09 14:00:33.038 2987-4816/com.sonyliv.smapleevents D/AppsFlyer_6.0.0: (4919986) [Thread-18] WARNING: Google play services is unavailable. 2021-04-09 14:00:33.039 2987-4816/com.sonyliv.smapleevents I/AppsFlyer_6.0.0: (4919986) [Thread-18] Android ID was not collected. 2021-04-09 14:00:33.039 2987-4816/com.sonyliv.smapleevents I/AppsFlyerOaid5.4.4: Fetch 0 ms 2021-04-09 14:00:33.047 2987-4816/com.sonyliv.smapleevents I/AppsFlyer_6.0.0: (4919995) [Thread-18] AppsFlyer: first launch date: 2021-04-09_070834+0000 2021-04-09 14:00:33.048 2987-4816/com.sonyliv.smapleevents D/AppsFlyer_6.0.0: (4919996) [Thread-18] didConfigureTokenRefreshService=false 2021-04-09 14:00:33.054 2987-4814/com.sonyliv.smapleevents I/AppsFlyer_6.0.0: (4920002) [Thread-17] AppsFlyerLib.sendWithEvent 2021-04-09 14:00:33.056 2987-4814/com.sonyliv.smapleevents V/AppsFlyer_6.0.0: (4920004) [Thread-17] Install referrer will not load, the counter > 2, 2021-04-09 14:00:33.096 2987-4816/com.sonyliv.smapleevents I/AppsFlyer_6.0.0: (4920044) [Thread-18] AppsFlyerLib.sendWithEvent 2021-04-09 14:00:33.279 2987-2998/com.sonyliv.smapleevents I/iv.smapleevent: Background young concurrent copying GC freed 54111(2318KB) AllocSpace objects, 12(624KB) LOS objects, 45% free, 3397KB/6227KB, paused 5.129ms total 59.512ms 2021-04-09 14:00:33.279 2987-2998/com.sonyliv.smapleevents W/iv.smapleevent: Reducing the number of considered missed Gc histogram windows from 147 to 100 2021-04-09 14:00:33.301 2987-4814/com.sonyliv.smapleevents I/AppsFlyer_6.0.0: (4920249) [Thread-17] url: https://launches.appsflyer.com/api/v6.0/androidevent?app_id=com.sonyliv.smapleevents&buildnumber=6.0.0 2021-04-09 14:00:33.302 2987-4814/com.sonyliv.smapleevents I/AppsFlyer_6.0.0: (4920250) [Thread-17] data: {"country":"US","kef6566":"9f4c5e5aa739805148191f1b0c531b0d591a120d5a1f1c","af_timestamp":"1617957032891","appsflyerKey":"B****e","af_events_api":"1","isFirstCall":"true","prev_session_dur":1468,"registeredUninstall":false,"cell":{"mnc":260,"mcc":310},"operator":"T-Mobile","network":"WIFI","timepassedsincelastlaunch":"1471","open_referrer":"android-app:\/\/com.google.android.apps.nexuslauncher","af_v2":"cc502b4e49e046b0525389feb04d7cf005ba0d7a","sig":"57CFCF8E1E04782723BD993FE341E8DBB5608A3A49F9B4A8E465E5CBCCA40A83","uid":"1617952114389-8021522433774973860","isGaidWithGps":"true","lang_code":"en","installDate":"2021-04-09_070831+0000","app_version_code":"1","firstLaunchDate":"2021-04-09_070834+0000","ivc":false,"model":"sdk_gphone_x86_arm","lang":"English","brand":"google","deviceType":"userdebug","last_boot_time":1617901708049,"product":"sdk_gphone_x86_arm","deviceData":{"cpu_abi":"x86","build_display_id":"sdk_gphone_x86_arm-userdebug 11 RSR1.201013.001 6903271 dev-keys","btch":"no","dim":{"size":"2","ydp":"560.0","xdp":"560.0","y_px":"2560","x_px":"1440","d_dpi":"560"},"arch":"","btl":"100.0","cpu_abi2":""},"date2":"2021-04-09_123831+0530","counter":"6","date1":"2021-04-09_123831+0530","advertiserId":"9a624599-a439-4e48-9a26-b334ce44bc06","advertiserIdEnabled":"true","af_v":"692dc1fc0431c9d72b0c9aa8134bc3f2b1d899a7","exception_number":62,"carrier":"Android","disk":"5355\/5951","af_preinstalled":"false","iaecounter":"5","sc_o":"p","tokenRefreshConfigured":false,"sdk":"30","app_version_name":"1.0","device":"generic_x86_arm","platformextension":"android_native","cksm_v1":"4f26daa3b0301dedbfd2d2953586cf85a1"} 2021-04-09 14:00:33.324 2987-4816/com.sonyliv.smapleevents I/AppsFlyer_6.0.0: (4920272) [Thread-18] url: https://inapps.appsflyer.com/api/v6.0/androidevent?app_id=com.sonyliv.smapleevents&buildnumber=6.0.0 2021-04-09 14:00:33.332 2987-4816/com.sonyliv.smapleevents I/AppsFlyer_6.0.0: (4920280) [Thread-18] data: {"country":"US","af_timestamp":"1617957032992","appsflyerKey":"B****e","af_events_api":"1","kef6666":"56e8391e5277178548191f1b0c531b0d591a120d5a1f1c","isFirstCall":"true","registeredUninstall":false,"cell":{"mnc":260,"mcc":310},"operator":"T-Mobile","network":"WIFI","af_v2":"bfb5a876e785bcb174183c8f7178cfe338dd2250","sig":"57CFCF8E1E04782723BD993FE341E8DBB5608A3A49F9B4A8E465E5CBCCA40A83","uid":"1617952114389-8021522433774973860","eventValue":"{\"Reopen\":true}","isGaidWithGps":"true","lang_code":"en","installDate":"2021-04-09_070831+0000","app_version_code":"1","firstLaunchDate":"2021-04-09_070834+0000","ivc":false,"eventName":"af_purchase","model":"sdk_gphone_x86_arm","lang":"English","brand":"google","deviceType":"userdebug","last_boot_time":1617901708049,"product":"sdk_gphone_x86_arm","deviceData":{"cpu_abi":"x86","build_display_id":"sdk_gphone_x86_arm-userdebug 11 RSR1.201013.001 6903271 dev-keys","dim":{"size":"2","ydp":"560.0","xdp":"560.0","y_px":"2560","x_px":"1440","d_dpi":"560"},"arch":"","cpu_abi2":""},"date2":"2021-04-09_123831+0530","counter":"6","date1":"2021-04-09_123831+0530","advertiserId":"9a624599-a439-4e48-9a26-b334ce44bc06","advertiserIdEnabled":"true","af_v":"38fe641d91c1271b1a861693eaf13f2ece48250a","carrier":"Android","disk":"5355\/5951","sensors":{"mm":{"v":[[90,-47.7],[0,0]],"n":"Goldfish 3-axis Magnetic field sensor"},"am":{"v":[[0,9.7,0.8],[0,0,0]],"n":"Goldfish 3-axis Accelerometer"},"gs":{"v":[[0,0,0],[0,0,0]],"n":"Goldfish 3-axis Gyroscope"}},"af_preinstalled":"false","iaecounter":"6","sc_o":"p","tokenRefreshConfigured":false,"sdk":"30","app_version_name":"1.0","device":"generic_x86_arm","prev_event":"{\"prev_event_timestamp\":\"1617955561906\",\"prev_event_value\":\"{\\"Reopen\\":true}\",\"prev_event_name\":\"af_purchase\"}","platformextension":"android_native","cksm_v1":"66db9c43d30886f2bf513c959f70afbca4"} 2021-04-09 14:00:34.066 2987-4814/com.sonyliv.smapleevents D/AppsFlyer_6.0.0: (4921014) [Thread-17] Exception in sendRequestToServer. 2021-04-09 14:00:34.067 2987-4814/com.sonyliv.smapleevents I/AppsFlyer_6.0.0: (4921015) [Thread-17] failed to send request to server. java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. 2021-04-09 14:00:34.067 2987-4814/com.sonyliv.smapleevents D/AppsFlyer_6.0.0: (4921015) [Thread-17] Exception while sending request to server. 2021-04-09 14:00:34.068 2987-4814/com.sonyliv.smapleevents I/AppsFlyer_6.0.0: (4921016) [Thread-17] caching request... 2021-04-09 14:00:34.070 2987-4814/com.sonyliv.smapleevents D/AppsFlyer_6.0.0: (4921018) [Thread-17] java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. 2021-04-09 14:00:34.070 2987-4814/com.sonyliv.smapleevents D/AppsFlyer_6.0.0: (4921018) [Thread-17] [GCD-A02] Calling onConversionFailure with: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. 2021-04-09 14:00:34.070 2987-4814/com.sonyliv.smapleevents D/LOG_TAG: error getting conversion data: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. 2021-04-09 14:00:34.086 2987-4816/com.sonyliv.smapleevents D/AppsFlyer_6.0.0: (4921034) [Thread-18] Exception in sendRequestToServer. 2021-04-09 14:00:34.087 2987-4816/com.sonyliv.smapleevents I/AppsFlyer_6.0.0: (4921035) [Thread-18] failed to send request to server. java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. 2021-04-09 14:00:34.087 2987-4816/com.sonyliv.smapleevents D/AppsFlyer_6.0.0: (4921035) [Thread-18] Exception while sending request to server. 2021-04-09 14:00:34.087 2987-4816/com.sonyliv.smapleevents I/AppsFlyer_6.0.0: (4921035) [Thread-18] caching request... 2021-04-09 14:00:34.088 2987-4816/com.sonyliv.smapleevents D/AppsFlyer_6.0.0: (4921036) [Thread-18] java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. 2021-04-09 14:00:34.088 2987-4816/com.sonyliv.smapleevents D/Surendar: Event failed to be sent: Error code: 40 Error description: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. 2021-04-09 14:00:34.088 2987-4816/com.sonyliv.smapleevents D/AppsFlyer_6.0.0: (4921036) [Thread-18] [GCD-A02] Calling onConversionFailure with: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. 2021-04-09 14:00:34.088 2987-4816/com.sonyliv.smapleevents D/LOG_TAG: error getting conversion data: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

sokoloff06 commented 3 years ago

Hi @pramodcs47!

Please check your Network security configuration. If you made any customisation, most likely you are blocking connectivity with any domain other than allowed in your config.

You may need to add AppsFlyer domain or server certificates to allowlist. You can confirm the issue is in the security configuration if you create an empty project with AppsFlyer SDK, run it (should work fine) and add your security configuration (will get the same error).

Closing as not an issue in the SDK side. Feel free to re-open if you believe otherwise.