-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError when trying to use a proxy (Windows 10) #272
Comments
Did you run in it without the proxy and it was working? This looks like there is an error in the way you wrote your proxy in the config.py Since you use windows I recommend using notepad++ or similar to look at the file since it could be some encoding error and windows tools tend to be weird with encodings. Also is there any special char like & in your url? |
It runs just fine without the proxy, and I've been using notepad++. I took the format that others have used, but perhaps I did make an error. Here's what I've got;
|
obvious ones
|
I've tried several IP's (of correct length, with a port included) to no avail, and my variable is called PROXIES. Here's exactly what is in my config " |
where is the pgoapi.py that you edited? paste the path here. |
D:\Program Files\pokeminer-0.5.4\src\pgoapi\pgoapi.py |
yeah so you can see in the error that the pgoapi that it is calling is here: this got installed from pip install -r requirements.txt try to either:
lemme know if this works or if you need more help. |
I've updated the pgoapi within the python folder, and I'm getting this new error;
|
haha i'm giving you more errors. now it likely won't run even w/o proxies. so i can tell you updated the pgoapi to the latest because now it is looking for a device_info. open up the new pgoapi.py (in D:\Program Files\Python27.....) and around line 71 you should see: self.device_info = device_info change this to self.device_info = None if that doesnt work try: self.device_info = {} that may or may not make it work again. to spoof an actual device, and 100% make it work again, this should set you up for spoofing a device: an example from that thread: at top of file, put: import uuid at line 71, where self.device_info = device_info WAS (delete it): self.device_info = {} EDIT: or if you dont want to do all of this, delete the pgoapi folder then change the requirements.txt in pokeminer to: |
Using "self.device_info = {}" seems to have worked. Thanks for the help again! |
i edited my comment in case you wanted to have a look. right now you are sending blank device ids to the server. |
What's the reasoning for sending device ID's to the server. Just to make the accounts look less suspicious? |
yeah that is exactly why |
Alright, I've added those new lines and it's still working. Once again, thanks for the help. |
I've started having a new problem, where my workers often receive [LOGIN FAILED] while using a proxy now. I've tried 10+ different proxies and the problem persists through all of them. When I stop using proxies, the problem is non-existent. I haven't changed anything since I got the proxies working 2 days ago. Any ideas? |
can you paste the lines from your worker.log that pertain to this? |
|
from what i can tell, you're not receiving any data when using your proxy. either the proxies you use are overloaded or they aren't configured correctly. |
So would the incorrect configuration be on my end, or the proxy's end? |
your end. can you load webpages using these proxies? |
Just tried, and none of them seem to be loading a webpage. I did have a few working proxies a few days ago, but those gave the same LOGIN FAILED the next day as well. |
sorry, but it looks like the proxies you use are either overloaded and not finishing requests or just not active anymore. try to find more working proxies and use those. |
run worker.py --log-level DEBUG to get more detail from log file. make sure you use socks proxy, not http proxy. Did all worket get the same error? |
I've got one proxy (sort of) working now. It takes about a minute for each scanner to successfully login, and then it begins the scan. However, they frequently display the LOGIN FAILED again for a bit and then resume scanning. They do this mid-cycle so I don't think it's just sleeping. I've been using this off and on since I found it, but I'm not sure if all of the points are getting scanned or not. All of the workers get the same error right off the bat, but then the LOGIN FAILED happens seemingly at random amongst them. |
There are a lot of free socks proxies you can find online, but you need to test them first. Have you read #252? You'll never get your points 100% scanned with current worker.py. Simple server throttle on request is enough to make your worker restart and scan from the first point. Imagine if this happens when worker in 80% percentage |
I'm running into this issue after setting the proxy in the config;
I've looked over the several posts related to proxies here already, and followed the instructions as they were given. I've run "pip install requests[shocks]", "pip install pysocks" and "pip install win_inet_pton". I've added "import win_inet_pton", and "import requests" to both the config.py and the pgoapi.py. I've tried using the changes listed HERE. I'm at a loss for what else I could be missing that would cause this issue.
The text was updated successfully, but these errors were encountered: