BoringSSL Error

I’m quite new to Swift and have a problem that I can’t solve since about 1,5 weeks. I was checking every forum if anyone has the same problem, but I couldn’t find anyone. Would be cool if someone could help me. I want to get data from an website through parsing json.

My code to get the data looks like this:


func getData(){

        let url = URL(string: ““)

        let task = URLSession.shared.dataTask(with: url!) { (data, response, error) in

            if error != nil



            } else


                if let content = data





                        let myJson = try JSONSerialization.jsonObject(with: content, options: JSONSerialization.ReadingOptions.mutableContainers) as AnyObject


                        let EthereumDataEUR = try JSONDecoder().decode([ethereumDataEUR].self, from: data!)

                        self.course = Double(EthereumDataEUR[0].price_eur)!








        }; task.resume()

       label.text = String(format: “%.2f”, course)




Every time I start the code in the simulator or real Device (it doesn’t matter which one) I get the following code in the console:

2017-11-20 14:40:23.813604+0100 JsonTest[17534:5500248] [BoringSSL] Function boringssl_context_get_peer_sct_list: line 1757 received sct extension length is less than sct data length


I am using this code in viewWillAppear, so that the user has latest information when he starts the app or changes between tab bars. And I also use it in an extra function when he clicks on a button. I only get the boringSSl error when the data is downloaded the first time. I have got labels where the data that I download should be displayed, but it doesn’t display after the first download. I hope you know what i mean?


Thanks for your help.

Powered by WPeMatico


You may also like...

Comments are closed.