Noctem / Monocle

PoGo mapper and notifier
MIT License
121 stars 151 forks source link

Unable to Authenticate - [Wx: NOT AUTHENTICATED] #240

Open Needydudespam opened 7 years ago

Needydudespam commented 7 years ago

scan.py loads and then each account fails to authenticate

accounts.csv has been tried with the various combinations

no PTC, double quotes around password

username,password,provider,model,iOS,id
Msre0ereerat,"IhateP@g0",,,,
MyPosfdfdlks,"IhateP@ga0",,,,

PTC, no double quotes around password

username,password,provider,model,iOS,id
Msre0ereerat,IhateP@g0,ptc,,,
MyPosfdfdlks,IhateP@ga0,ptc,,,

PTC, double quotes around password

username,password,provider,model,iOS,id
Msre0ereerat,"IhateP@g0",ptc,,,
MyPosfdfdlks,"IhateP@ga0",ptc,,,

accounts all able to log in via alternate programs. Hash key in use and valid.

[2017-04-19 23:07:52][ WARNING][worker-1] Auth error on Msre0ereerat: Invalid initial JSON response. [2017-04-19 23:07:52][ WARNING][worker-3] Auth error on MyPosfdfdlks: Invalid initial JSON response.

any suggestions on where I am going wrong?

DavePlater commented 7 years ago

Is your bossland hashing key working correctly?

Needydudespam commented 7 years ago

The hashing key works in another program, so I would say yes.

DavePlater commented 7 years ago

Just checking. Someone bought a pokefarmer hash key before and not the api hashing key. They are not the same thing. Did your monocle work before or have you never been able to log in?

Needydudespam commented 7 years ago

I have used the same accounts and same key with RocketMap. This is the first time i have tried to get monocle to work. I have gotten as far as getting the instance to run.

monocole

I have just today done git checkout develop git pull pip3 install -U -r requirements.txt

and get C:\pkm\Monocle>git checkout develop Already on 'develop' M optional-requirements.txt Your branch is up-to-date with 'origin/develop'.

C:\pkm\Monocle>git pull Already up-to-date.

I am running windows, so i had to remove uvloop

my requirements.txt is geopy>=1.11.0 protobuf>=3.0.0 flask>=0.11.1 gpsoauth>=0.4.0 werkzeug>=0.11.15 sqlalchemy>=1.1.0 aiopogo>=1.8.0 polyline>=1.3.1 aiohttp>=2.0.7,<2.1 pogeo>=0.3 cyrandom>=0.1.2

my optional requirements is asyncpushbullet>=0.12 peony-twitter>=0.9.3 selenium>=3.0 psycopg2>=2.6 cchardet>=1.1.0 aiodns>=1.1.0 aiosocks>=0.2.2 asyncpg>=0.8 ujson>=1.35

....

and I have just worked out that when i commented out my proxies from config, it works... so I am leaving this comment here for the next person to try to fix their own.

So now the issue seems to be proxy related...

it seems i have aiosocks installed Requirement already up-to-date: aiosocks>=0.2.2 in c:\python36-32\lib\site-packages (from -r optional-requirements.txt (line 7))

my proxies are PROXIES = {'https://79.274.93.120:24298' } is this wrong?

Needydudespam commented 7 years ago

i had to remove uvloop>=0.7.0 and sanic>=0.3 to get it to complete on windows as both referred to uvloop so I need to somehow install sanic without uvloop

not sure how to do this on windows tho

SANIC_NO_UVLOOP=true SANIC_NO_UJSON=true python -m pip install sanic

so would this be part of why proxies dont work for me, or is this just webserver related?

mimikq commented 7 years ago

Hi All

i have q , till now i was using RM, but now i'm trying monocle. i i got error : KeyError: 'HASH_KEY'

from what i read around in issues opened or closed, so RM and monocle are not using the same HASH KEY ?

https://talk.pogodev.org/d/55-api-hashing-service-f-a-q

https://talk.pogodev.org/d/51-api-hashing-service-by-pokefarmer

i got 1 one but it looks like i will need the 2. ?

 grep -i hash config.py
 key for Bossland's hashing server, otherwise the old hashing lib will be used
HASH_KEY = 'KEY' # this key is fake
python3 scan.py
Traceback (most recent call last):
  File "/root/Monocle/monocle/sanitized.py", line 268, in __getattr__
    default = _defaults.pop(name)
KeyError: 'HASH_KEY'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "scan.py", line 218, in <module>
    main()
  File "scan.py", line 205, in main
    activate_hash_server(conf.HASH_KEY)
  File "/root/Monocle/monocle/sanitized.py", line 276, in __getattr__
    raise AttributeError(err)
AttributeError: HASH_KEY not in config, and no default has been set.

thx for answer