Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1854

How to fix PokeAPI TLS Error in Golang (Debian)? [closed]

$
0
0

I am trying to run a HTTP Server through Go, and load a list of Pokemon to the starting page with a PokeAPI package. The brunt of making it actually work was on a Chromebook using a GitHub Codespace, and I didn't run into any problems getting data from the API. When I later ran it on my home PC (using Debian 12 / Bookworm), I kept getting the error

Get "https://pokeapi.co/api/v2/pokedex/national": tls: first record does not look like a TLS handshake

A quick Google search told me this happens when you try and access something https using http, and to try opening requests to and from port 443 on my ufw, which didn't fix things.Running the same code from my Codespace has consistently worked. Is there anyone using Debian, or some other Linux distro that has encountered this problem trying to use an API?


Viewing all articles
Browse latest Browse all 1854

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>