Quantcast
Channel: Questions in topic: "webrequest"
Viewing all articles
Browse latest Browse all 387

SSLHandshakeException during Web Request

$
0
0
I was working on the game and as per game requirements, I was fetching logos from the web server through Web Request. Here is my code: // fetching all company related details IEnumerator LoadCompanyDetails () { WWW www = new WWW (GameConstants.API_GET_LOGOS); yield return www; if (www.error == null) { // Debug.Log ("Data: " + www.text); JSONObject jsonObj = new JSONObject (www.text); Debug.Log ("Loaded following XML " + www.text); long status = jsonObj [TAG_STATUS].i; if (status == 1) { // login success List dataObj = jsonObj [TAG_DATA].list; for (int i = 0; i < dataObj.Count; i++) { Company companyItem = new Company (); JSONObject companyObj = dataObj [i]; companyItem.CompanyId = companyObj [TAG_COMPANY_ID].i.ToString (); companyItem.CompanyName = companyObj [TAG_COMPANY_NAME].str; companyItem.CompanyLogoUrl = companyObj [TAG_COMPANY_LOGO].str; companyItem.AbountCompany = companyObj [TAG_COMPANY_ABOUT].str; companyItem.ContactInfo = companyObj [TAG_COMPANY_CONTACT_INFO].str; companyItem.CompanyEmail = companyObj [TAG_COMPANY_EMAIL].str; companyItem.CompanyWebsite = companyObj [TAG_COMPANY_WEBSITE].str; DataCollection.companyDetailsList.Add (companyItem); } StartCoroutine (FetchCompanyLogos ()); } else { // login fail } } else { Debug.Log ("++++++++++++++++++++++++++++++"); Debug.Log ("Error: " + www.error); } } Last 3 months this working properly but suddenly SSLHandshakeException started to come. ![alt text][1] On PC its running properly, request get satisfied. On mobile device, its not working now. Give me some suggestion for solution in this. [1]: /storage/temp/126615-sslhandshakeexception.png

Viewing all articles
Browse latest Browse all 387

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>