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

Timeout in _fetch_car #16

Open
jdunphy2 opened this issue Jan 16, 2021 · 1 comment
Open

Timeout in _fetch_car #16

jdunphy2 opened this issue Jan 16, 2021 · 1 comment

Comments

@jdunphy2
Copy link

  • mychevy version: 2.1.1
  • Python version: 3.7.3
  • Operating System: Raspbian GNU/Linux 10 (buster)

Description

I'm trying to get this working with homeassistant. The command line test was timing out in _fetch_car.

What I Did

After trying a few things, I was able to get it working by removing the headers (headers=headers) from both self.session.get calls in _fetch_car. Maybe GM doesn't like the choice of USER_AGENT anymore?

@randyreeder
Copy link

Thanks for this info. I was having this same problem when running this script on my hostgator website, but when I run it on my local ubuntu laptop it works fine. I was able to get it working on hostgator by removing the headers=headers parameters in those two calls in _fetch_car. I don't know exactly what this means, but I guess some combination of the user agent and other things about a request from a hostgator server seem to prevent it from working.

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