-
Notifications
You must be signed in to change notification settings - Fork 20
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
API stopped working: "The requested URL /api_v210707_NE/gdc/InitialApp_v2.php was not found on this server." #46
Comments
Same here in Germany. The stock Nissan app works, though. |
Nissan changed the base URL, the new one can be found here: |
Obviously the API endpoint has been changed, see filcole#46 (comment)
Thank you @irekzielinski @Ez2517-Git , in my local HAOS I have just updated the BASE_URL:
|
I have also crafted #47 which updates the BASE_URL configuration and was able to validate that everything works fine by using this PR on my HA instance. |
i am supprised that an external leaf app continues working. Checking the opensource discover that the endpoint on that app was changed 9 months ago. It seams the author of that app was informed earlier and didn't have to wait and discover the api's don't work anymore. the app i am reffering to: "my leaf". |
For anyone who needs access to lower level SSH on a local install check this out: https://developers.home-assistant.io/docs/operating-system/debugging/#generating-ssh-keys |
I apologise if this is a stupid question - but after i edit the file how do i save changes? When i restart home assistant the api link I've edited reverts back. |
Press escape key, then write: |
or: ESC, then ZZ |
Nissan Leaf N-Connecta 2023 working again in Italy, thank you so much for the update |
2023 Leafs do not use Carwings any more, afaik...
Am 20. Mai 2024 00:34:37 MESZ schrieb ik3huk ***@***.***>:
Nissan Leaf N-Connecta 2023 working again in Italy, thank you so much for the update
--
Reply to this email directly or view it on GitHub:
#46 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
--
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
|
I have replaced the step 3, if anybody don't know how to use 'vi command' |
I can confirm this also fixes the problem for me (I'm in Ireland). |
Thank you for the update. It works again on my Nissan Leaf 2018. |
I'm afraid this isn't gonna work for homeassistant-core. |
I have literally no idea of what to do here! Should I just wait for an HA update? How long might that take please? |
First you have to install a ssh terminal in HA: https://www.youtube.com/watch?v=dAmGYrKDpZE |
Thanks for this. Have just followed it and it works perfectly! |
Works for me too now. I already had ssh and terminal installed. But not the advanced version. The non-advanced version obviously hasn't docker available. After installing the advanced version and following the instructions my Nissan is available. Thanks! |
Works for me, (once I realised I needed the advanced ssh addon). |
Same here. Thank you very much. |
Any ideas how to solve it for core? |
Yes, just follow the instructions above. Bu sure to install the advanced ssh (also if you already installed the basic ssh) 1:
2:
In case you make any typo's on step 3 (i did on my mobile phone :-(, in the second part of the replacement apparently): |
TBH, I didn't know what I was doing, but doing this SSH to HAOS magically worked!. I also restarted my HA. Thank you so much @irekzielinski @Ez2517-Git |
As mentioned above: use advanced ssh. I ran into the same problem by using the standard ssh. |
I'm using the VM console, which worked a few weeks ago with the HA 2024.5 release. I'll check the advanced SSH add-on. |
Advanced ssh worked fine Yesterday for me, as for the previous realeses of HA. |
Advanced SSH add-on is working, thanks! |
Obviously the API endpoint has been changed, see filcole#46 (comment)
No solution for the pycarwings2 issue yet? Or we need to continue to push this patch after each update of HA? |
Thanks to everyone who provided info for this issue. I finally got the original integration working again by editing the pycarwings2.py file via the Advanced SSH Terminal. I initially struggled to get the Advanced SSH addon to run until I realised that the standard SSH addon was using port 22. You either have to Stop that addon, or change the port that the Advanced SSH addon uses from 22 to something else. e.g. 23. |
When can I expect that a solution makes it into the official Home assistant? Thanks for the support on this to everyone who is contributing. |
Im in the UK and noticed API stopped working (Nissan app works OK).
This line of code fails:
Logged the error message:
`ERROR:pycarwings2.pycarwings2:Invalid JSON returned:
<title>404 Not Found</title><html>
Not Found
The requested URL /api_v210707_NE/gdc/InitialApp_v2.php was not found on this server.
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/pycarwings2/pycarwings2.py", line 160, in _request
j = json.loads(response.text)
File "/usr/local/lib/python3.7/json/init.py", line 348, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.7/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
`
Anyone else seeing this?
Thanks!
The text was updated successfully, but these errors were encountered: