ashleypittman / mec

MyEnergi Client API and Management tools.
GNU General Public License v3.0
31 stars 26 forks source link

Nissan integration error? #12

Open Edcorteen opened 2 years ago

Edcorteen commented 2 years ago

Hi Ashley, sorry! found another issue has Nissan done something to their login, get these errors in the log.

2021-10-05 17:24:37,053 - 768 - pycarwings2.pycarwings2 - DEBUG - invoking carwings API: https://gdcportalgw.its-mo.com/api_v190426_NE/gdc/InitialApp_v2.php 2021-10-05 17:24:37,053 - 768 - pycarwings2.pycarwings2 - DEBUG - params: { "RegionCode": "NE", "custom_sessionid": "", "initial_app_str": "9s5rfKVuMrT03RtzajWNcA", "lg": "en-US" } 2021-10-05 17:24:37,055 - 768 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): gdcportalgw.its-mo.com:443 2021-10-05 17:24:38,077 - 768 - urllib3.connectionpool - DEBUG - https://gdcportalgw.its-mo.com:443 "POST /api_v190426_NE/gdc/InitialApp_v2.php HTTP/1.1" 404 234 2021-10-05 17:24:38,080 - 768 - pycarwings2.pycarwings2 - DEBUG - Response HTTP Status Code: 404 2021-10-05 17:24:38,080 - 768 - pycarwings2.pycarwings2 - DEBUG - Response HTTP Response Body: b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n\n404 Not Found\n\n

Not Found

\n

The requested URL /api_v190426_NE/gdc/InitialApp_v2.php was not found on this server.

\n\n' 2021-10-05 17:24:38,081 - 768 - pycarwings2.pycarwings2 - ERROR - Invalid JSON returned

ashleypittman commented 2 years ago

I had this one to, you just need to update the checkout of the https://github.com/filcole/pycarwings2 repo, specifically you want https://github.com/filcole/pycarwings2/commit/627f9e18bbead510d4a8f01ff87ddb7ffed08dc1

Edcorteen commented 2 years ago

Hi Ashley, any idea what is wrong? the install seems to be looking in the wrong place still, from log... 2021-10-06 16:20:49,588 - 766 - pycarwings2.pycarwings2 - DEBUG - invoking carwings API: https://gdcportalgw.its-mo.com/api_v190426_NE/gdc/InitialApp_v2.php from Pycarwings2.py... BASE_URL = "https://gdcportalgw.its-mo.com/api_v210707_NE/gdc/"

I have tried reinstall, all I see is requirements met for each module.