-
Notifications
You must be signed in to change notification settings - Fork 66
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
change in URL for UK users? #35
Comments
Looks like there is a new API:
https://gist.github.com/BenWoodford/141ca350445e994e69a70aabfb6db942
Somebody has already implemented it:
gboudreau/nissan-connect-php@297d47f
Maybe the old one was turned off over the weekend.
Gyula
…On Tue, May 29, 2018 at 8:49 PM Ireneusz Zielinski ***@***.***> wrote:
Hi guys. Started to get this error recently:
DEBUG:pycarwings2.pycarwings2:invoking carwings API: https://gdcportalgw.its-mo.com/gworchest_160803A/gdc/InitialApp.php
DEBUG:pycarwings2.pycarwings2:params: {
"RegionCode": "NE",
"custom_sessionid": "",
"initial_app_strings": "redacted_out",
"lg": "en-US"
}
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): gdcportalgw.its-mo.com
DEBUG:urllib3.connectionpool:https://gdcportalgw.its-mo.com:443 "POST /gworchest_160803A/gdc/InitialApp.php HTTP/1.1" 404 234
DEBUG:pycarwings2.pycarwings2:Response HTTP Status Code: 404
DEBUG:pycarwings2.pycarwings2:Response HTTP Response Body: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /gworchest_160803A/gdc/InitialApp.php was not found on this server.</p>
</body></html>
Traceback (most recent call last):
File "get-leaf-battery.py", line 33, in <module>
l = s.get_leaf()
File "/usr/local/lib/python2.7/dist-packages/pycarwings2/pycarwings2.py", line 189, in get_leaf
self.connect()
File "/usr/local/lib/python2.7/dist-packages/pycarwings2/pycarwings2.py", line 151, in connect
"lg": "en-US",
File "/usr/local/lib/python2.7/dist-packages/pycarwings2/pycarwings2.py", line 134, in _request
j = json.loads(response.content)
File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Looks like the URL changed?
Anyone seeing this?
Cheers,
Irek
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#35>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUsIMH_JmcNhIyZy6iW4h2AVlEqvRMUnks5t3ZhOgaJpZM4USBv3>
.
|
oh snap! |
@irekzielinski my scripts broke too... but the official app is still working with me. Not sure how to find out which api/server that it is using now... I also tried BenWoodfords calls (from the comments), but get an
using NE as country @jdhorne what do you think? |
The US and EU apps are now completely different. I think the new API is for the US app only. |
got the new url from the eu app: https://gdcportalgw.its-mo.com/api_v180117_NE/gdc replace BASE_URL in pycarwings2.py and it works. |
@gym22 thanks for that info! Indeed the new API is only in the US (and probably Japan?), the old API is the only one we have in the EU. |
Extracted from the EU app by @gym22 in jdhorne/pycarwings2#35 (comment) Fixes #2.
@gym22 THANKS! Created a PR, url needs to end with a '/' :
Works like a charm \o/ |
As per jdhorne#35
Good spot. I wonder if this is to do with the new European GDPR? European user data is now hopefully being kept in Europe. Hopefully this will improve reliability. |
Looks like it's changed again today: https://twitter.com/NissanEV_UK/status/1076200864044515328?s=15 I'm getting a 404 not found on the standard UK API now. |
I can verify the same, do we know what the new URL is? |
… On 2018. Dec 23., at 17:05, Dean Lozo ***@***.***> wrote:
I can verify the same, do we know what the new URL is?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#35 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AUsIMJn7vhYVSXUG8dNaWrhMmMsuJPwyks5u76nEgaJpZM4USBv3>.
|
Oh, I used this one: |
@BenWoodford working fine for me with that new URL. |
For me (NL here) the https://gdcportalgw.its-mo.com/api_v181217_NE/, but @BenWoodford's one: https://gdcportalgw.its-mo.com/gworchest_160803EC/gdc/ is. Update: when adding "/gdc/" to the first url BOTH are working for me: https://gdcportalgw.its-mo.com/api_v181217_NE/gdc/ Thanks All, for this work! |
See also the discussion on BenWoodford@1170caf |
I've got a working version of this library and published it to PyPi. It uses the same URL as mentioned above #35 (comment) and also by dartcarwings |
Hi guys. Started to get this error recently (used to work 99% of time, not always fails):
Looks like the URL changed?
Anyone seeing this?
Cheers,
Irek
The text was updated successfully, but these errors were encountered: