tls: failed to verify certificate: x509: certificate signed by unknown authority
I am learning Go by building a Discord bot and an API service.
I am getting the following error when deploying commands to Discord from the built container:
I know very little about networking. Any pointers?
Repo: https://github.com/leonlarsson/bfstats-bot-go
5 Replies
Project ID:
a1f9ffe2-f62a-40c6-93ae-a31972cae7bb
a1f9ffe2-f62a-40c6-93ae-a31972cae7bb
I am using the scratch image. Maybe it is too scratch in this case?
Sidenote: Switching from scratch to golang:1.22-bookworm (same as my dev container), I get another error
Solution
This seems to do the trick
Considering this solved, but feel free to feedback