replete-repl / replete-ios

ClojureScript REPL iOS app
Eclipse Public License 1.0
395 stars 25 forks source link

New http/get throws on https #130

Closed paultopia closed 5 years ago

paultopia commented 5 years ago

As of latest update adding http:

(require `replete.http)
(replete.http/get "https://gist.githubusercontent.com/paultopia/b36fed87be320bc9d21d28a1692e25ec/raw/74cf569e100e8c26b5107137f5e6c727763ff4ef/evalme.cljs")

fails with Execution error (Error) at (<cljs repl>:1). Peer certificate cannot be authenticated with given CA certificates

I assume this isn't the host's fault since, you know, it's GitHub. And that url connects with my host's web browser.

I tried passing an options map with {:insecure true} as the second argument, and that crashed replete.

mfikes commented 5 years ago

Hey @paultopia I can confirm the crash; it is evidently in the native code copied from Planck as it crashes there too planck-repl/planck#894

I can also confirm the CA issue, which is an odd one. (Perhaps it is a manifestation of the derailment when it crashes... let's see if I fix the underlying native issue what happens then.)

mfikes commented 5 years ago

Crash issue being handled separately via #131