aandrew-me / tgpt

AI Chatbots in terminal without needing API keys
GNU General Public License v3.0
2.04k stars 171 forks source link

Error: Post "https://https.extension.phind.com/agent/": EOF #233

Closed EnriColombo closed 8 months ago

EnriColombo commented 8 months ago

How to replicate the issue:

~# tgpt "What is Alpine Linux?"
Some error has occurred. Check your internet connection.

Error: Post "https://https.extension.phind.com/agent/": EOF

The internet connection works fine. My system specs are:

~# cat /etc/os-release 
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.14.3
PRETTY_NAME="Alpine Linux v3.14"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://bugs.alpinelinux.org/"

Go lang version:

~# go version
go version go1.16.15 linux/386

tgpt version:

~# tgpt -v
tgpt 2.7.1

Any help would be appreciated, tks!

aandrew-me commented 8 months ago

Interesting. Can you access phind.com?

EnriColombo commented 8 months ago

Actually I get a 403 forbidden status code.

~# curl -Is https://https.extension.phind.com/agent/ | head -1
HTTP/2 403
aandrew-me commented 8 months ago

Its normal, check if you can access https://www.phind.com

EnriColombo commented 8 months ago
~# curl -Is http://www.phind.com | head -1
HTTP/1.1 301 Moved Permanently
aandrew-me commented 8 months ago

Just try opening in browser, it has cloudflare protection so you will get 4xx status codes with curl

EnriColombo commented 8 months ago

It opens in browser

aandrew-me commented 8 months ago

Strange, I don't even know. The error message isn't clear either. If you can somehow proxy the request to something like MITMProxy, that could help me understand better. Otherwise you can just use other providers instead of phind

agvxov commented 8 months ago

Not sure if this helps anything, but I can confirm tgpt works normally under my Alpine v3.18.

aandrew-me commented 8 months ago

Not sure if this helps anything, but I can confirm tgpt works normally under my Alpine v3.18.

Thanks for letting us know. I think that indicates to it being a network related problem