rdeepak2002 / reddit-place-script-2022

Script to draw an image onto r/place (https://www.reddit.com/r/place/)
909 stars 347 forks source link

[BUG] Cannot use proxies that require authentication #333

Closed aidan-walden closed 2 years ago

aidan-walden commented 2 years ago

Bug Report Form

Checklist

Describe the bug

Trying to use proxies with authentication in config.json, I get "Failed to connect to websocket" error

To Reproduce

Steps to trigger the bug:

  1. Place a proxy in the format "username:password@ip:port" in config.json
  2. Run the script

Expected behavior

The proxy connects.

Additional context

Add any other context about the problem here.

aidan-walden commented 2 years ago

These types of proxies require you to manually append "http://" to the beginning of each URL, as it turns out.

gmorningman commented 2 years ago

These types of proxies require you to manually append "http://" to the beginning of each URL, as it turns out.

what did you mean by this? is it the below?

{
    "thread_delay": 2,
    "unverified_place_frequency": false,
    "proxies": ["http://username:password@1.1.1.1:8080", "2.2.2.2:1234"],
    "compact_logging": true
}
aidan-walden commented 2 years ago

Like the 1st proxy in that array, yes