sdague / mychevy

Python module to interact with my.chevy website for collecting charge data for chevy bolt
Other
50 stars 8 forks source link

Getting 403Authorization #19

Open fragglehunter opened 3 years ago

fragglehunter commented 3 years ago

Description

Getting 403Authorization failed every time

What I Did

# mychevy -c config.ini
Loading data, this takes up to 2 minutes...
{'messages': ['403Authorization failed'], 'serverErrorMsgs': ['403Authorization failed'], 'data': 'SERVER ERROR'}, Retrying in 3 seconds...
{'messages': ['403Authorization failed'], 'serverErrorMsgs': ['403Authorization failed'], 'data': 'SERVER ERROR'}, Retrying in 6 seconds...
Traceback (most recent call last):
  File "/usr/local/bin/mychevy", line 11, in <module>
    load_entry_point('mychevy==2.1.1', 'console_scripts', 'mychevy')()
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/mychevy/cli.py", line 29, in main
    cars = page.update_cars()
  File "/usr/local/lib/python3.6/site-packages/mychevy/mychevy.py", line 355, in update_cars
    self._fetch_car(c)
  File "/usr/local/lib/python3.6/site-packages/mychevy/mychevy.py", line 137, in f_retry
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/mychevy/mychevy.py", line 351, in _fetch_car
    car.from_json(res.content)
  File "/usr/local/lib/python3.6/site-packages/mychevy/mychevy.py", line 194, in from_json
    raise ServerError(res)
mychevy.mychevy.ServerError: {'messages': ['403Authorization failed'], 'serverErrorMsgs': ['403Authorization failed'], 'data': 'SERVER ERROR'}
fragglehunter commented 3 years ago

Am I the only one experiencing this? Is this due to app requiring onstar PIN now? I have verified my user and password are correct

Nowaker commented 3 years ago

Same for me:

2021-06-10 21:22:53 ERROR (Thread-3) [homeassistant.components.mychevy] Error updating mychevy data. This probably means the OnStar link is down again
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/mychevy/__init__.py", line 146, in run
self.update()
File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 280, in wrapper
result = method(*args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/mychevy/__init__.py", line 128, in update
self.cars = self._client.update_cars()
File "/usr/local/lib/python3.8/site-packages/mychevy/mychevy.py", line 355, in update_cars
self._fetch_car(c)
File "/usr/local/lib/python3.8/site-packages/mychevy/mychevy.py", line 137, in f_retry
return f(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/mychevy/mychevy.py", line 351, in _fetch_car
car.from_json(res.content)
File "/usr/local/lib/python3.8/site-packages/mychevy/mychevy.py", line 194, in from_json
raise ServerError(res)
mychevy.mychevy.ServerError: {'messages': ['403Authorization failed'], 'serverErrorMsgs': ['403Authorization failed'], 'data': 'SERVER ERROR'}

I don't think the PIN is a problem. I went to https://my.chevrolet.com/ and logging in with username and password succeeded.