Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

[BUG] Tor making websocket fail #421

Open
ollivxv opened this issue Apr 4, 2022 · 1 comment
Open

[BUG] Tor making websocket fail #421

ollivxv opened this issue Apr 4, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@ollivxv
Copy link

ollivxv commented Apr 4, 2022

Bug Report Form

Checklist

  • [y] I am using the latest version of the code.
  • [y] I am absolutely sure I read the README in its entirety.
  • [y] I have made sure this is not a duplicate issue.
  • [y] I have filled out this form correctly.

Describe the bug

When I use Tor the script cannot connect to the websocket (line 530), could be my fault as I had to use my own tor and not the premade binary

To Reproduce

Steps to trigger the bug:

  1. Enable tor in the config
  2. Run script
  3. See that it doesnt connect
  4. Disable tor
  5. See that it works

Expected behavior

For it to connect to the websocket

Additional context

image

@ollivxv ollivxv added the bug Something isn't working label Apr 4, 2022
@ollivxv ollivxv changed the title [BUG] [BUG] Tor making websocket fail Apr 4, 2022
@bolshoytoster
Copy link

@olli-exe

I had to use my own tor and not the premade binary

If possible, could you see f it works with the pre-made binary.

If not possible, could you try this:

diff --git a/main.py b/main.py
index 9c407c3..d5d4ad9 100755
--- a/main.py
+++ b/main.py
@@ -526,9 +530,9 @@ class PlaceClient:
                                 proxies=proxy.get_random_proxy(self),
                             )
                             break
-                        except Exception:
+                        except Exception as e:
                             logger.error(
-                                "Failed to connect to websocket, trying again in 30 seconds..."
+                                f"Failed to connect to websocket, trying again in 30 seconds... {e}"
                             )
                             time.sleep(30)

And paste the error(s).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants