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

Getting Login Error #2

Closed
NickWallbridge opened this issue May 30, 2018 · 8 comments
Closed

Getting Login Error #2

NickWallbridge opened this issue May 30, 2018 · 8 comments

Comments

@NickWallbridge
Copy link

Was working fine for a week or so, then 48 hours ago (28-May-2018) started getting:

Logging into Carwings...
ERROR: invalid character '<' looking for beginning of value

Research suggest this maybe a non-JSON response to the login, but I don't know enough to debug. ConnectEV and YOU+Nissan are working, so I think the service is up.

@joeshaw
Copy link
Owner

joeshaw commented May 30, 2018

I've been seeing some weird behavior lately too, I will take a look.

In the meantime, you can get additional detail by passing a -debug flag, which will print out all the HTTP communication it does with Nissan's servers. Just note that credentials may be included in this output (particularly when logging in) so review things carefully, but that output would be helpful in tracking things down.

@NickWallbridge
Copy link
Author

NickWallbridge commented May 30, 2018

Thanks for the quick response. Here is the debug output:

Logging into Carwings...

POST https://gdcportalgw.its-mo.com/gworchest_160803A/gdc/InitialApp.php map[initial_app_strings:[geORNtsZe5I4lRGjG9GZiA]]
HTTP/1.1 404 Not Found
Content-Length: 234
Content-Type: text/html; charset=iso-8859-1
Date: Wed, 30 May 2018 15:15:17 GMT
Server: Apache

<title>404 Not Found</title>

Not Found

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

ERROR: invalid character '<' looking for beginning of value

@NickWallbridge
Copy link
Author

Sorry closed the issue by accident

@joeshaw
Copy link
Owner

joeshaw commented May 30, 2018

Looks like the API has changed:

jdhorne/pycarwings2#35
gboudreau/nissan-connect-php#18
https://gist.github.com/BenWoodford/141ca350445e994e69a70aabfb6db942

I will look into updating things.

@NickWallbridge
Copy link
Author

Thanks. Happy to test/confirm when you have an update.

@joeshaw
Copy link
Owner

joeshaw commented May 30, 2018

@NickWallbridge In what country are you located?

@joeshaw
Copy link
Owner

joeshaw commented May 30, 2018

jdhorne/pycarwings2#35 (comment) had the clue needed -- a new API endpoint URL. They extracted it from the EU Nissan Leaf app. I am in the US and it still works for me.

There is still a new API available, but it appears to only be available for North America (and possibly Japan) but not Europe yet. I'll file a new issue about implementing that.

@joeshaw joeshaw mentioned this issue May 30, 2018
@NickWallbridge
Copy link
Author

@joeshaw I am in the United Kingdom, so maybe a problem for me?

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

2 participants