Skip to content
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

Chunked Encoding Error #3374

Closed
nikhil-pandey opened this issue Aug 10, 2016 · 3 comments
Closed

Chunked Encoding Error #3374

nikhil-pandey opened this issue Aug 10, 2016 · 3 comments

Comments

@nikhil-pandey
Copy link
Contributor

nikhil-pandey commented Aug 10, 2016

Traceback (most recent call last):
  File "pokecli.py", line 521, in <module>
    main()
  File "pokecli.py", line 95, in main
    bot.tick()
  File "/home/pi/bot/pokemongo_bot/__init__.py", line 446, in tick
    self.cell = self.get_meta_cell()
  File "/home/pi/bot/pokemongo_bot/__init__.py", line 458, in get_meta_cell
    cells = self.find_close_cells(*location)
  File "/home/pi/bot/pokemongo_bot/__init__.py", line 532, in find_close_cells
    response_dict = self.get_map_objects(lat, lng, timestamp, cellid)
  File "/home/pi/bot/pokemongo_bot/__init__.py", line 1075, in get_map_objects
    cell_id=cellid
  File "/home/pi/bot/src/pgoapi/pgoapi/pgoapi.py", line 122, in function
    return request.call()
  File "/home/pi/bot/pokemongo_bot/api_wrapper.py", line 106, in call
    result = self._call()
  File "/home/pi/bot/pokemongo_bot/api_wrapper.py", line 63, in _call
    return PGoApiRequest.call(self)
  File "/home/pi/bot/src/pgoapi/pgoapi/pgoapi.py", line 220, in call
    response = request.request(self._api_endpoint, self._req_method_list, self.get_position())
  File "/home/pi/bot/src/pgoapi/pgoapi/rpc_api.py", line 127, in request
    response = self._make_rpc(endpoint, request_proto)
  File "/home/pi/bot/src/pgoapi/pgoapi/rpc_api.py", line 115, in _make_rpc
    http_response = self._session.post(endpoint, data=request_proto_serialized, timeout=30)
  File "/home/pi/bot/local/lib/python2.7/site-packages/requests/sessions.py", line 518, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/home/pi/bot/local/lib/python2.7/site-packages/requests/sessions.py", line 475, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/pi/bot/local/lib/python2.7/site-packages/requests/sessions.py", line 617, in send
    r.content
  File "/home/pi/bot/local/lib/python2.7/site-packages/requests/models.py", line 741, in content
    self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()
  File "/home/pi/bot/local/lib/python2.7/site-packages/requests/models.py", line 667, in generate
    raise ChunkedEncodingError(e)
requests.exceptions.ChunkedEncodingError: ("Connection broken: error(104, 'Connection reset by peer')", error(104, 'Connection reset by peer'))
@Ph4i1ur3
Copy link

What commit are you using? And does this happen frequently? If so, how to reproduce the effect?

@nikhil-pandey
Copy link
Contributor Author

nikhil-pandey commented Aug 10, 2016

I was using 0f2bddd

Happened once last night.

@Ph4i1ur3
Copy link

I'm thinking this could be the result of the API change that occurred last night. I'd update to the latest release and make sure your requirements are up to date

hoanghuynh pushed a commit to hoanghuynh/PokemonGo-Bot that referenced this issue Sep 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants