Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Getting 403Authorization #19

Open
fragglehunter opened this issue Apr 29, 2021 · 2 comments
Open

Getting 403Authorization #19

fragglehunter opened this issue Apr 29, 2021 · 2 comments

Comments

@fragglehunter
Copy link

  • mychevy version: 2.1.1
  • Python version: 3.7.3
  • Operating System: Centos 7

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
Copy link
Author

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
Copy link

Nowaker commented Jun 11, 2021

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.

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

No branches or pull requests

2 participants