h3poteto / whalebird-desktop

Single-column Fediverse client for desktop
https://whalebird.social
GNU General Public License v3.0
900 stars 82 forks source link

"Failed to get authorize url" when through Socks5 proxy at 4.7.2 #3859

Closed chenshaoju closed 1 year ago

chenshaoju commented 1 year ago

Description

Sorry for my English.

When I set a Socks5 proxy in whalebird settings, I can't log in, returning an error message: "Failed to get authorize URL".

How To Reproduce

  1. Open whalebird
  2. Set a socks5 proxy
  3. try log in.

Your Environment

Screenshot: Proxy: Screenshot_20221203_153016

Login error: Screenshot_20221203_153043

Logs: Screenshot_20221203_153123

If any more information is needed, please feel free to ask.

Edit: The socks5 proxy is working well Screenshot_20221203_154023

h3poteto commented 1 year ago

Does this only happen on acg.mn? Did you try to log in to another mastodon server with proxy?

chenshaoju commented 1 year ago

Hi, I tested 3 sites, and they are all not working.

Screenshot_20221203_233754

Screenshot_20221203_233833

Screenshot_20221203_233910

h3poteto commented 1 year ago

OK, thanks.

h3poteto commented 1 year ago

Screenshot from 2022-12-11-22-26-37

I can reproduce it. I was using local tor proxy Screenshot from 2022-12-11-22-25-36

h3poteto commented 1 year ago
  22:28:11.342 › TypeError: No "host"
      at parseSocksProxy (/run/media/h3poteto/ssd1/dev/src/github.com/h3poteto/whalebird-desktop/node_modules/socks-proxy-agent/dist/index.js:29:15)
      at new SocksProxyAgent (/run/media/h3poteto/ssd1/dev/src/github.com/h3poteto/whalebird-desktop/node_modules/socks-proxy-agent/dist/index.js:115:29)
      at proxyAgent (/run/media/h3poteto/ssd1/dev/src/github.com/h3poteto/whalebird-desktop/node_modules/megalodon/lib/src/proxy_config.js:87:30)
      at /run/media/h3poteto/ssd1/dev/src/github.com/h3poteto/whalebird-desktop/node_modules/megalodon/lib/src/megalodon.js:109:68
      at step (/run/media/h3poteto/ssd1/dev/src/github.com/h3poteto/whalebird-desktop/node_modules/megalodon/lib/src/megalodon.js:48:23)
      at Object.next (/run/media/h3poteto/ssd1/dev/src/github.com/h3poteto/whalebird-desktop/node_modules/megalodon/lib/src/megalodon.js:29:53)
      at /run/media/h3poteto/ssd1/dev/src/github.com/h3poteto/whalebird-desktop/node_modules/megalodon/lib/src/megalodon.js:23:71
      at new Promise (<anonymous>)
      at __awaiter (/run/media/h3poteto/ssd1/dev/src/github.com/h3poteto/whalebird-desktop/node_modules/megalodon/lib/src/megalodon.js:19:12)
      at detector (/run/media/h3poteto/ssd1/dev/src/github.com/h3poteto/whalebird-desktop/node_modules/megalodon/lib/src/megalodon.js:101:12)
h3poteto commented 1 year ago

The cause is megalodon: https://github.com/h3poteto/megalodon/issues/1508

chenshaoju commented 1 year ago

This issue has been fixed in 4.7.4 or another version, Thank you!