babashka-sci-dev

borkdude 2023-02-25T16:20:26.193579Z

Anyone knows what's up with this?

(require '[babashka.http-client :as http])
(http/get "")
Type:     javax.net.ssl.SSLHandshakeException
Message:  PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Location: /tmp/repro.clj:8:1

borkdude 2023-02-25T16:24:14.203869Z

Ah well, I get the same issue with a regular JVM so no worries

Bob B 2023-02-25T16:56:11.035859Z

the gist would be that the cert provided by the server is not trusted/issued by a CA trusted by the JVM - I have to deal with this specific error all the time at work, because we have internal CAs that have to be added to the JVM trust stores

lispyclouds 2023-02-25T20:00:47.737269Z

As far as i can see (havent dug much) bb.edn tasks cannot have java imports like it has :requires right?

borkdude 2023-02-25T20:02:33.720369Z

true

lispyclouds 2023-02-25T20:02:58.621059Z

is it something that's worth supporting?

borkdude 2023-02-25T20:03:52.720339Z

I don't intend adding more stuff to bb.edn than strictly necessary for "coding". You can use a fully qualified name or you can just write some code in a regular .clj file. The latter is encouraged anyway if your task grows past a couple of lines.

lispyclouds 2023-02-25T20:04:33.026529Z

yeah i had bunch of tiny tasks using the same java class and thats where i started wondering

borkdude 2023-02-25T20:04:37.801449Z

I usually add a .tasks .bb , .build or bb folder and add that to :paths [...] in the bb.edn and then use :requires to load that code

borkdude 2023-02-25T20:05:24.252619Z

I still not sure what my favorite name but .bb or .build is cool I think ;)

lispyclouds 2023-02-25T20:06:03.997129Z

its no where a blocker for me, just wondering if its something we'd wanna consider as an intuitive thing. like :imports