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

It doesn't seem to work - DEBUG:pycarwings2.pycarwings2:Response HTTP Status Code: 404 #13

Open
gr0mit1 opened this issue Jul 11, 2020 · 0 comments

Comments

@gr0mit1
Copy link

gr0mit1 commented Jul 11, 2020

Hi Folks
I'm getting a URL error when I try running this script on my emonpi. I've pasted the debug output below, having removed my Leaf user/pass, which we know works on the 'My Leaf' android app.

What am I doing wrong, please?!

Cheers
Tim
root@emonpi:/opt/leaf-mqtt# ./leaf-python-mqtt.py
INFO:root:Startup leaf-python-MQTT: 2020-07-11 18:43:33
INFO:root:Loaded config file /opt/leaf-mqtt/config.ini
INFO:root:updating data from API every 15min
DEBUG:root:login = user , password = pass
INFO:root:Prepare Session
INFO:root:Login...
INFO:root:Start update time: 2020-07-11 18:43:33
DEBUG:pycarwings2.pycarwings2:invoking carwings API: https://gdcportalgw.its-mo.com/api_v181217_NE/gdc/InitialApp.php
INFO:root:Connected to MQTT host localhost with result code 0
DEBUG:pycarwings2.pycarwings2:params: {
"RegionCode": "NE",
"custom_sessionid": "",
"initial_app_strings": "geORNtsZe5I4lRGjG9GZiA",
"lg": "en-US"
}
INFO:root:Suscribing to leaf control topic: emon/leaf/control
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): gdcportalgw.its-mo.com:443
INFO:root:Publishing to leaf status topic: emon/leaf/status
DEBUG:urllib3.connectionpool:https://gdcportalgw.its-mo.com:443 "POST /api_v181217_NE/gdc/InitialApp.php HTTP/1.1" 404 231
DEBUG:pycarwings2.pycarwings2:Response HTTP Status Code: 404
DEBUG:pycarwings2.pycarwings2:Response HTTP Response Body:

<title>404 Not Found</title>

Not Found

The requested URL /api_v181217_NE/gdc/InitialApp.php was not found on this server.

ERROR:root:CarWings API error
INFO:root:Schedule API update every 15min

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

No branches or pull requests

1 participant