desktop icon indicating copy to clipboard operation
desktop copied to clipboard

[Bug]: Can not retrieve http://example.com on MacOS m1

Open alex-bender opened this issue 2 years ago • 4 comments

What happened?

I can not access http://example.com out of desktop app

Steps to reproduce?

Installed app,
opened it,
entered http://example.com into address bar,
hit "Send"
got
"Connection refused

Check the URL and try again."
Message

What did you expect to happen?

See example.com site being loaded into the app as online version shows.

Platform

macOS

HTTPie Desktop version

2022.5.1

Relevant log output

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

alex-bender avatar Oct 25 '22 19:10 alex-bender

Don't you have any relevant records in your /etc/hosts? I can't reproduce the problem on my m1 macbook

psd-coder avatar Nov 04 '22 22:11 psd-coder

Nothing related to example.com, moreover I can reach that site via web version, or any other way

alex-bender avatar Nov 04 '22 23:11 alex-bender

btw, from terminal:

http http://example.com

http: error: ConnectionError: HTTPConnectionPool(host='example.com', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x101e8d810>: Failed to establish a new connection: [Errno 61] Connection refused')) while doing a GET request to URL: http://example.com/

alex-bender avatar Nov 04 '22 23:11 alex-bender

Now it gives status 400 Version 2023.3.0 (2023.3.0)

image

http --version 3.2.1

http http://example.com
HTTP/1.1 200 OK
Accept-Ranges: bytes
Age: 480987
Cache-Control: max-age=604800
Content-Encoding: gzip
Content-Length: 648
Content-Type: text/html; charset=UTF-8
Date: Thu, 29 Jun 2023 14:44:21 GMT
Etag: "3147526947+gzip"
Expires: Thu, 06 Jul 2023 14:44:21 GMT
Last-Modified: Thu, 17 Oct 2019 07:18:26 GMT
Server: ECS (nyb/1D13)
Vary: Accept-Encoding
X-Cache: HIT

<!doctype html>
<html>
<head>
...

alex-bender avatar Jun 29 '23 14:06 alex-bender