lunar@machine ~ % tail -n 100 /opt/homebrew/var/log/tor.log
Nov 17 02:09:02.865 [notice] Tor 0.4.8.9 running on Darwin with Libevent 2.1.12-stable, OpenSSL 3.1.4, Zlib 1.2.12, Liblzma N/A, Libzstd N/A and Unknown N/A as libc.
Nov 17 02:09:02.865 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://support.torproject.org/faq/staying-anonymous/
Nov 17 02:09:02.865 [notice] Read configuration file "/opt/homebrew/etc/tor/torrc".
Nov 17 02:09:02.867 [notice] Opening Socks listener on 127.0.0.1:9050
Nov 17 02:09:02.867 [notice] Opened Socks listener connection (ready) on 127.0.0.1:9050
Nov 17 02:09:02.000 [warn] Cannot find maximum file descriptor, assuming: 256
Nov 17 02:09:02.000 [notice] Parsing GEOIP IPv4 file /opt/homebrew/Cellar/tor/0.4.8.9/share/tor/geoip.
Nov 17 02:09:02.000 [notice] Parsing GEOIP IPv6 file /opt/homebrew/Cellar/tor/0.4.8.9/share/tor/geoip6.
Nov 17 02:09:02.000 [notice] Bootstrapped 0% (starting): Starting
Nov 17 02:09:03.000 [notice] Starting with guard context "bridges"
Nov 17 02:09:03.000 [notice] Delaying directory fetches: No running bridges
Nov 17 02:09:04.000 [notice] Bootstrapped 1% (conn_pt): Connecting to pluggable transport
Nov 17 02:09:04.000 [notice] Bootstrapped 2% (conn_done_pt): Connected to pluggable transport
Nov 17 02:09:04.000 [notice] Bootstrapped 10% (conn_done): Connected to a relay
Nov 17 02:09:04.000 [notice] Managed proxy "/opt/homebrew/bin/snowflake-client": offer created
Nov 17 02:09:04.000 [notice] Managed proxy "/opt/homebrew/bin/snowflake-client": broker failure http: no Host in request URL
Nov 17 02:09:09.000 [notice] Managed proxy "/opt/homebrew/bin/snowflake-client": offer created
Nov 17 02:09:09.000 [notice] Managed proxy "/opt/homebrew/bin/snowflake-client": broker failure http: no Host in request URL
Nov 17 02:09:14.000 [notice] Managed proxy "/opt/homebrew/bin/snowflake-client": offer created
Nov 17 02:09:14.000 [notice] Managed proxy "/opt/homebrew/bin/snowflake-client": broker failure http: no Host in request URL
Nov 17 02:09:19.000 [notice] Managed proxy "/opt/homebrew/bin/snowflake-client": offer created
Nov 17 02:09:19.000 [notice] Managed proxy "/opt/homebrew/bin/snowflake-client": broker failure http: no Host in request URL
Nov 17 02:09:24.000 [notice] Managed proxy "/opt/homebrew/bin/snowflake-client": offer created
Nov 17 02:09:24.000 [notice] Managed proxy "/opt/homebrew/bin/snowflake-client": broker failure http: no Host in request URL
What could the problem be? I have searched around everywhere but I can’t figure out why the error broker failure http: no Host in request URL happens.
Running the snowflake-client command manually using the following actually works 100% fine, so I can’t figure out why it doesn’t work through the Tor daemon.
Though this doesn’t match what you’re seeing. Can you include the contents of /opt/homebrew/var/log/snowflake-client.log? That might give us some more clues about what is going wrong here.
I’m now convinced you are running into the bug linked above. The log messages match it exactly, and I was able to reproduce it from the v2.7.0 tag using your provided torrc files. This has been fixed in the Snowflake code, but we haven’t released a new version yet. We can do so early next week. Until then, you can try building the client from source from the main branch: The Tor Project / Anti-censorship / Pluggable Transports / Snowflake · GitLab
Running the snowflake-client command manually using the following actually works 100% fine, so I can’t figure out why it doesn’t work through the Tor daemon.
This command just starts the Snowflake client as a separate process, but without another torrc file that looks something like the following, the client won’t yet attempt to make a connection to the bridge.