kit
kit copied to clipboard
hackernews egghead example failing with error
Thank you for scriptkit. I'm enjoying it thoroughly.
I was following along with the exercise in egghead.io and noticed that the script now fails
// Name: hackernews
import "@johnlindquist/kit"
let response = await get("https://api.hackerwebapp.com/news");
inspect(response.data);
Running this results in the following error:
[2023-01-21 23:48:20.039] [warn] ☠️ ERROR PROMPT SHOULD SHOW ☠️
[2023-01-21 23:48:20.043] [warn] Error: unable to get local issuer certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1535:34)
at TLSSocket.emit (node:events:513:28)
at TLSSocket._finishInit (node:_tls_wrap:949:8)
at ssl.onhandshakedone (node:_tls_wrap:730:12)
at TLSWrap.callbackTrampoline (node:internal/async_hooks:130:17)
[2023-01-21 23:48:20.051] [info]
$ cd /Users/vivekk/.kit
Ah. I just discovered that there is already a discussion on this topic. I'm also on a machine with zscaler. I will try on another machine without it and confirm.