Corewala / Buran

Gemini browser for Android
GNU General Public License v3.0
103 stars 10 forks source link

Odd, repeatable, localhost connection error #9

Closed acidus99 closed 2 years ago

acidus99 commented 2 years ago

This is a really odd error, but it is consistent and repeatable. When attempting to load certain URLs, I will get this error message:

image

This is odd for several reasons, so I will try to provide as much information as I can:

I'm not sure if this will reproduce for you. I'm on the page: gemini://gemi.dev/cgi-bin/wp.cgi/view?f101. Click thing the links for "F-101 Voodoo" or "Dominican frigate" cause the error. Clicking on "General Electric F101" does not.

Like I said it's weird. It only happens on URLs with query strings. I have seen this happen on other capsules like search engines as well.

Corewala commented 2 years ago

Fixed! Took me a while to find the problem. The links which give the error don't need to have query strings. The issue is that they are returning local redirect headers which the request function was handling as global URIs with empty hostnames.