home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.58k stars 29.91k forks source link

carwings error INVALID PARAMS: 404 #50911

Closed RoadkillUK closed 2 years ago

RoadkillUK commented 3 years ago

The problem

I've just updated to the new HA Core Release 2021.5.5. After restarting I get this error and the Nissan Leaf integration will no longer start.

2021-05-20 19:19:57 DEBUG (SyncWorker_1) [homeassistant.components.nissan_leaf] Logging into You+Nissan 2021-05-20 19:19:59 ERROR (SyncWorker_1) [pycarwings2.pycarwings2] carwings error INVALID PARAMS: 404 2021-05-20 19:19:59 ERROR (SyncWorker_1) [homeassistant.components.nissan_leaf] An unknown error occurred while connecting to Nissan: <class 'pycarwings2.pycarwings2.CarwingsError'>

What is version of Home Assistant Core has the issue?

Release 2021.5.5

What was the last working version of Home Assistant Core?

Release 2021.5.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Nissan Leaf

Link to integration documentation on our website

https://www.home-assistant.io/integrations/nissan_leaf/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Another user who isn't using HASSOS has a fix for it.

I have this problem again.
I resolve in the same way of previous time. I edited the file
homeassistant/lib/python3.8/site-packages/pycarwings2/pycarwings2.py

at line 125:
headers={"User-Agent": "pycarwings2/2.10"}

with this:
headers={"User-Agent": ""}

By(t)e

Additional information

Link to the above comment and thread.

probot-home-assistant[bot] commented 3 years ago

nissan_leaf documentation nissan_leaf source (message by IssueLinks)

probot-home-assistant[bot] commented 3 years ago

Hey there @filcole, mind taking a look at this issue as its been labeled with an integration (nissan_leaf) you are listed as a codeowner for? Thanks! (message by CodeOwnersMention)

jbltpcblt commented 3 years ago

provisional troubleshooting : https://community.home-assistant.io/t/nissan-leaf-component-s-platform/38663/506

plastbox commented 3 years ago

Same issue as https://github.com/home-assistant/core/issues/50967

prilly-dev commented 3 years ago

I think we need a new maintainer of this addon.

RoadkillUK commented 3 years ago

@prilly-dev

Is there no-one else who can fix this issue I take it? I don't know what exactly it would involve, but it can't be that much. 'A' solution is at the top of this page.

EDIT: no disrespect inteded!

prilly-dev commented 3 years ago

@prilly-dev

Is there no-one else who can fix this issue I take it? I don't know what exactly it would involve, but it can't be that much. 'A' solution is at the top of this page.

EDIT: no disrespect inteded!

Its not that hard to fix it, but you need ownership of pycarwings2 pylib and the ha addon. You can make a pull request for the lib and addon, and hope the maintainer merge it

RoadkillUK commented 3 years ago

When I implied "it's not that difficult" ... I was referring to someone who knows what they're doing :)

Thanks, @prilly-dev

prilly-dev commented 3 years ago

When I implied "it's not that difficult" ... I was referring to someone who knows what they're doing :)

Thanks, @prilly-dev

What are you implying here? You can say thanks to me becouse it was me that found the original issue causing this error in the first place 😒 i dont give a shit about this addon, i have made a custom one.

Good luck anyway

RoadkillUK commented 3 years ago

Woah fella, what happened here? I see that my wording has come across in the wrong context, after reading it back it does sound insulting depending on what tone you use. However, that REALLY wasn't my intent and I apologise.

The impression I wanted to get across is I don't know what I'm doing, not you :(

jeremycoppey commented 3 years ago

When I implied "it's not that difficult" ... I was referring to someone who knows what they're doing :) Thanks, @prilly-dev

What are you implying here? You can say thanks to me becouse it was me that found the original issue causing this error in the first place 😒 i dont give a shit about this addon, i have made a custom one.

Good luck anyway

Can you share the Custom integration as the owner still didn't take the required actions.

@filcole can you please fix this issue. There is a pullrequest waiting: #filcole/pycarwings2/pull/29

jmason commented 3 years ago

I'm unfamiliar with the HA way of doing things, but is there a way to work around this kind of issue where a python lib's maintainer is AWOL?

github-actions[bot] commented 2 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.