gboudreau / nissan-connect-php

Use the Nissan Connect (was Carwings) API using a simple PHP class.
GNU General Public License v3.0
38 stars 17 forks source link

BlahBlah?? #35

Closed Raiden38 closed 3 years ago

Raiden38 commented 3 years ago

F1FC5888-1FE7-4BF7-B62B-047E331351C9 Since Sept 9, I get a Non-JSON response: BlahBlah! This is very weird. Any other have the issue? Maybe the URL have changed? On Nissan got hacked? Lol

gboudreau commented 3 years ago

Same thing here; my guess: someone @ Nissan (or more likely, a subcontractor) deployed in PROD some debugging code.

rtw819 commented 3 years ago

Seeing the same, and chuckled. A small part of me wonders if there is a new or different API endpoint (?) for auth since the Nissan EV&Services app connects and is still working right now with my US 2017 LEAF. Their app actually seemed speedier than average, and it seems to actually be working at the moment, so that much is hard to complain about.

It is definitely a strange response from an API call for sure, and not very professional. :D Hopefully they figure it out.

SDeath667 commented 3 years ago

I am seeing something similar: An error occurred: Non-JSON response received for request to 'BatteryStatusCheckRequest.php'. Response received: "\n\n Not sure when this started, but very annoying because my code doesn’t work anymore. I wonder if the app update had anything to do with a new API endpoint as well. I hope this can be fixed.

anderslundin-kanari commented 3 years ago

Are you using https://gdcportalgw.its-mo.com/api_v210707_NE/gdc/? If not try it, the older ones just expired and gave me the same error.

rtw819 commented 3 years ago

The US API endpoint seems to have changed, likely with the advent of the pending Ariya release.

From:

https://icm.infinitiusa.com/NissanLeafProd/rest/

To:

https://icm.infinitiusa.com/NissanEVProd/rest/
gboudreau commented 3 years ago

Looks like the API key sent in headers changed too, because just using that new URL fails with an Invalid API Key error.

gboudreau commented 3 years ago

Was able to see the new URL and API key by using Charles Debugging Proxy on an iOS device. (It doesn't work on Android anymore, since Android N.)

Raiden38 commented 3 years ago

Merci énormément!!!! :)

SDeath667 commented 3 years ago

Are you using https://gdcportalgw.its-mo.com/api_v210707_NE/gdc/? If not try it, the older ones just expired and gave me the same error.

Your suggestion worked, just changing the baseURL worked to fix my issue.

Raiden38 commented 3 years ago

Oh no, it's is starting again with the new link: Non-JSON response received for request to 'POST https://icm.infinitiusa.com/NissanEVProd/rest/auth/authenticationForAAS'. Response received: BlahBlah