scinfu / SwiftSoup

SwiftSoup: Pure Swift HTML Parser, with best of DOM, CSS, and jquery (Supports Linux, iOS, Mac, tvOS, watchOS)
https://scinfu.github.io/SwiftSoup/
MIT License
4.53k stars 345 forks source link

SSL_ERROR_ZERO_RETURN #89

Closed xyzbilal closed 6 years ago

xyzbilal commented 6 years ago

hi, while I m trying to parse html in https:// web sites Im getting the error that says " [BoringSSL] Function boringssl_session_errorlog: line 238 BoringSSL [C1.1:2] [0x7febfa518b10] [boringssl_session_read] SSL_ERROR_ZERO_RETURN(6): operation failed because the connection was cleanly shut down with a close_notify alert my parsing code is guard let url = URL(string: "https://www.afyoneczaciodasi.org/nobetci-eczaneler") else {return} do { let html = try String.init(contentsOf: url) let doc : Document = try SwiftSoup.parse(html) print(doc)

any idea to solve problem

scinfu commented 6 years ago

There was be an error with the connection and SSL, unfortunately, SwiftSoup has no networking call.