Fork me on GitHub
#babashka-sci-dev
<
2023-02-25
>
borkdude16:02:26

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

borkdude16:02:14

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

Bob B16:02:11

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

lispyclouds20:02:47

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

lispyclouds20:02:58

is it something that's worth supporting?

borkdude20:02:52

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.

lispyclouds20:02:33

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

borkdude20:02:37

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

borkdude20:02:24

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

lispyclouds20:02:03

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