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

Startup error on newest dev commit #4678

Closed
pmwoodward3 opened this issue Aug 24, 2016 · 16 comments
Closed

Startup error on newest dev commit #4678

pmwoodward3 opened this issue Aug 24, 2016 · 16 comments

Comments

@pmwoodward3
Copy link

pmwoodward3 commented Aug 24, 2016

Get this when logging in. re-cloned the bot to another folder and reinstalled it and it still happened. Ubuntu x64 16.04.

016-08-24 12:01:57,300 [PokemonGoBot] [INFO] [login_started] Login procedure started.
Traceback (most recent call last):
  File "pokecli.py", line 703, in <module>
    main()
  File "pokecli.py", line 186, in main
    report_summary(bot)
  File "pokecli.py", line 221, in report_summary
    metrics.capture_stats()
  File "/opt/dev/pokemongo_bot/metrics.py", line 96, in capture_stats
    response_dict = request.call()
  File "/opt/dev/pokemongo_bot/api_wrapper.py", line 239, in call
    result = self._call()
  File "/opt/dev/pokemongo_bot/api_wrapper.py", line 143, in _call
    location_type=1
  File "/opt/dev/local/lib/python2.7/site-packages/google/protobuf/internal/python_message.py", line 533, in init
    setattr(self, field_name, field_value)
  File "/opt/dev/local/lib/python2.7/site-packages/google/protobuf/internal/python_message.py", line 669, in field_setter
    new_value = type_checker.CheckValue(new_value)
  File "/opt/dev/local/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.py", line 134, in CheckValue
    raise ValueError('Value out of range: %d' % proposed_value)
ValueError: Value out of range: -117
2016-08-24 12:01:57,874 [sentry.errors] [ERROR] Sentry responded with an error: 'utf8' codec can't decode byte 0x9c in position 1: invalid start byte (url: https://app.getsentry.com/api/90254/store/)
Traceback (most recent call last):
  File "/opt/dev/local/lib/python2.7/site-packages/raven/transport/threaded.py", line 174, in send_sync
    super(ThreadedHTTPTransport, self).send(data, headers)
  File "/opt/dev/local/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send
    ca_certs=self.ca_certs,
  File "/opt/dev/local/lib/python2.7/site-packages/raven/utils/http.py", line 66, in urlopen
    return opener.open(url, data, timeout)
  File "/opt/dev/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 494, in open
    response = self._open(req, data)
  File "/opt/dev/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 512, in _open
    '_open', req)
  File "/opt/dev/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 466, in _call_chain
    result = func(*args)
  File "/opt/dev/local/lib/python2.7/site-packages/raven/utils/http.py", line 46, in https_open
    return self.do_open(ValidHTTPSConnection, req)
  File "/opt/dev/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 1284, in do_open
    h.request(req.get_method(), req.selector, req.data, headers)
  File "/usr/lib/python2.7/httplib.py", line 1057, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python2.7/httplib.py", line 1097, in _send_request
    self.endheaders(body)
  File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 895, in _send_output
    msg += message_body
  File "/opt/dev/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x9c in position 1: invalid start byte
2016-08-24 12:01:57,876 [sentry.errors.uncaught] [ERROR] [u'ValueError: Value out of range: -117', u'  File "pokecli.py", line 703, in <module>', u'  File "pokecli.py", line 186, in main', u'  File "pokecli.py", line 221, in report_summary', u'  File "pokemongo_bot/metrics.py", line 96, in capture_stats', u'  File "pokemongo_bot/api_wrapper.py", line 239, in call', u'  File "pokemongo_bot/api_wrapper.py", line 143, in _call', u'  File "/opt/dev/local/lib/python2.7/site-packages/google/protobuf/internal/python_message.py", line 533, in init', u'  File "/opt/dev/local/lib/python2.7/site-packages/google/protobuf/internal/python_message.py", line 669, in field_setter', u'  File "/opt/dev/local/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.py", line 134, in CheckValue']
Wed Aug 24 12:01:57 EDT 2016 Pokebot  Stopped.
Press any button or wait 20 seconds to continue.

@mjmadsen
Copy link
Contributor

Follow the steps listed in #4477

@pmwoodward3
Copy link
Author

neither of the solutions in that thread worked for me.

@mjmadsen
Copy link
Contributor

Tried going through tor or changing IP too?

@venkrishr
Copy link

@mjmadsen yeah those steps didnt work for me either,
one of the solutions is for docker and another one is for Windows.
I'm on a Mac, my IP has not been banned. So didnt work for me

@pmwoodward3
Copy link
Author

@mjmadsen Yep, different IPs and using torify.

@supergithubo
Copy link

What is your pogo api version?

@venkrishr
Copy link

1.1.8

@supergithubo
Copy link

Have you installed requirements with --upgrade flag? pip install -r requirements.txt --upgrade. I also had the errors but I can't reproduce after doing: (1) requirements upgrade. (2) remove pogo api and reinstall. (3) change my ip (tor reload). (4) recreate bin folder (virtualenv) and (5) disable social. I'm not sure but one of them fixed it.

@iakovoszournatzis
Copy link

i have the same problem. Any solution guys?

@mjmadsen
Copy link
Contributor

What @supergithubo said.

@iakovoszournatzis
Copy link

i have done all @supergithubo solutions except "change ip" with no luck. I have static IP, so i cannot change it, but do you really think that IP is the problem?

@mjmadsen
Copy link
Contributor

@iakovoszournatzis Sorry, this form of error can be tough to hunt down. From what I've seen it is usually solved by following those steps or is an IP ban. Hopefully as some point we can have better error reporting for such problem.

We'll leave open and hopefully someone can help you out more.

@lwq008
Copy link

lwq008 commented Aug 25, 2016

I hit into this and used VPN to resolve it. Looks like to me that my IP address was banned.

@mjmadsen
Copy link
Contributor

@lwq008 keep in mind a lot of botters are using VPNs. It's only a matter of time before their IP range is also blocked. Perhaps using the TOR network is a better solution (though recent update seems to get the client's network info).

@iakovoszournatzis Any luck?

@iakovoszournatzis
Copy link

@mjmadsen you guys are right. i got something like ban...

@mjmadsen
Copy link
Contributor

@pmwoodward3 How about you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants