pgoapi icon indicating copy to clipboard operation
pgoapi copied to clipboard

KeyError: 'GET_MAP_OBJECTS' in spiral search after todays API update

Open larsschwarz opened this issue 8 years ago • 24 comments

Seems like Niantic changed the MAP_OBJECTS response today ...

larsschwarz avatar Aug 03 '16 22:08 larsschwarz

They updated a lot on the server side, if you look on the pokemongodev reddit. It's probably gonna take some days until the new protos are found out. Meanwhile I am not doing any scans, so my accounts or IP does not get banned... Here is the Protobuf issue discussion: https://github.com/AeonLucid/POGOProtos/issues/131

genIterator avatar Aug 04 '16 00:08 genIterator

it is not exactly a matter of the proto, but rather a bug in the pgoapi which does not send the appropriate unknown6 value to its requests.

pokemondev was pretty close to understanding the signature when they closed their discord channel, so i suppose it will not take that long until someone explains how to construct unknown6.

Trolldemorted avatar Aug 04 '16 16:08 Trolldemorted

It is not really a bug but rather a part of the API that was never investigated as it worked before without it.

tejado avatar Aug 04 '16 16:08 tejado

bug or missing feature, it still has to be done - please dont pull a Mila432 on us :)

do you have access to pokemondev's discord channel?

Trolldemorted avatar Aug 04 '16 17:08 Trolldemorted

@tejado are you going to update api soon? :)

Vigerus avatar Aug 04 '16 18:08 Vigerus

Project is open source @Vigerus , you can update the API.

beeradmoore avatar Aug 05 '16 06:08 beeradmoore

Kinda strange: fort_details still works, get_gym_details doesn't ...

larsschwarz avatar Aug 05 '16 08:08 larsschwarz

is there a clear fix yet? is it actually the u6? its just a timestamp as far as i could understand between the bs posts

dnsBlah avatar Aug 05 '16 16:08 dnsBlah

Don't know, I still love to hear a quick conclusion of the change. Still wondering why they only "signed" a few requests (map object, gyms), but not others (download settings, fort details...).

larsschwarz avatar Aug 05 '16 16:08 larsschwarz

what you mean with signed? including u6?

dnsBlah avatar Aug 05 '16 16:08 dnsBlah

I don't know what u6 is used for (haven't followed all those mad discussions). Signed might be the wrong term, don't know if it's just a timestamp diff or a call that has to be done before any other calls and that validates a signature or whatever. Sorry for misusing this issue btw ... don't wanted to start another u6 discussion.

larsschwarz avatar Aug 05 '16 16:08 larsschwarz

A technical explanation: https://github.com/pkmngodev/Unknown6/issues/65

larsschwarz avatar Aug 06 '16 05:08 larsschwarz

Hi , could you please let me know when the pgoapi will be updated?

tienthanhdhcn avatar Aug 06 '16 18:08 tienthanhdhcn

https://github.com/keyphact/pgoapi

official pgoapi repo will be updated tomorrow.

tejado avatar Aug 07 '16 00:08 tejado

Thank you very much @tejado. However, when I use the current pgoapi, I got the map-cell of {'s2_cell_id': 5221642796544294912L, 'current_timestamp_ms': 1470530776035L} NOT the object? What should I do with this?

tienthanhdhcn avatar Aug 07 '16 00:08 tienthanhdhcn

i see this no exist and teh repo no exist only the user https://github.com/pkmngodev/Unknown6/issues/65

jomarocas avatar Aug 07 '16 02:08 jomarocas

Mine is not working either. It keeps spitting this out in the terminal:

2016-08-06 20:15:08,077 [ pgoapi] [ INFO] Adding 'GET_MAP_OBJECTS' to RPC request including arguments Traceback (most recent call last): File "pokecli.py", line 133, in <module> main() File "pokecli.py", line 128, in main response_dict = api.get_map_objects(latitude =position[0], longitude = position[1], since_timestamp_ms = timestamps, cell_id = cell_ids) File "/Users//Downloads/pgoapi-master/pgoapi/pgoapi.py", line 121, in function return request.call() File "/Users//Downloads/pgoapi-master/pgoapi/pgoapi.py", line 209, in call request.activate_signature(lib_path) File "/Users//Downloads/pgoapi-master/pgoapi/rpc_api.py", line 82, in activate_signature ctypes.cdll.LoadLibrary(lib_path) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 440, in LoadLibrary return self._dlltype(name) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 362, in __init__ self._handle = _dlopen(self._name, mode) OSError: dlopen(encrypt.dll, 6): image not found

Is this the same error as the one stated in this issue?

blackhattristar avatar Aug 07 '16 03:08 blackhattristar

So I am only getting objects with 'current_timestamp_ms': 1470569750623, 's2_cell_id': 9290065149094264832

I cant see any forts or pokemon. Am I doing something wrong?

jangeja avatar Aug 07 '16 11:08 jangeja

@jmangeja1 thats where i'm at too. any ideas?

rtw avatar Aug 07 '16 12:08 rtw

So I never tried this API before they fixed it yesterday so I don't know what the responses looked like without sending the unknown6. But I'm guessing I didn't install the python package correctly and Im not sending out unknown6 with my requests. Strange

jangeja avatar Aug 07 '16 12:08 jangeja

@jmangeja1 @rtw same here Lets see what the update tomorrow brings as tejado already mentioned

dnsBlah avatar Aug 07 '16 17:08 dnsBlah

@blackhattristar that is a different issue - please refer to #197

For other issues; make sure you are using the proper updates that have not been merged in to this repo yet. Make sure you have the right dll/so for your systems architecture. Make sure you are updating your code if not just using pokecli.py to make the appropriate calls for the signature. And finally, there is now a need to accept the TOS and mark the tutorial as complete for all accounts before they can make full calls.

elliottcarlson avatar Aug 07 '16 20:08 elliottcarlson

@elliottcarlson I tested with get_map_object call, it can be complete without accept the TOS. What do you mean by "full calls"?

chenditc avatar Aug 07 '16 23:08 chenditc

@chenditc it won't apply to everyone - depends on if they had accepted and completed the tutorial on a real device prior or not. Make sure you have a get_player() call before get_map_object() as well.

elliottcarlson avatar Aug 07 '16 23:08 elliottcarlson