AlexxIT / HassWP

Portable version of Home Assistant for Windows (no need to install)
https://github.com/AlexxIT/Blog
586 stars 76 forks source link

Nabu Casa not connecting #83

Open tobycth3 opened 6 months ago

tobycth3 commented 6 months ago
Logger: homeassistant.components.cloud.http_api
Source: C:\Users\WMC\Desktop\HassWP_2023.12.4\python-3.11.6.amd64\Lib\site-packages\homeassistant\components\cloud\http_api.py:177
Integration: Home Assistant Cloud (documentation, issues)
First occurred: 5:28:01 PM (1 occurrences)
Last logged: 5:28:01 PM

Unexpected error processing request for /api/cloud/login
Traceback (most recent call last):
  File "C:\Users\WMC\Desktop\HassWP_2023.12.4\python-3.11.6.amd64\Lib\site-packages\homeassistant\components\cloud\http_api.py", line 128, in error_handler
    result = await handler(view, request, *args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\WMC\Desktop\HassWP_2023.12.4\python-3.11.6.amd64\Lib\site-packages\homeassistant\components\http\data_validator.py", line 72, in wrapper
    result = await method(view, request, data, *args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\WMC\Desktop\HassWP_2023.12.4\python-3.11.6.amd64\Lib\site-packages\homeassistant\components\cloud\http_api.py", line 227, in post
    await cloud.login(data["email"], data["password"])
  File "C:\Users\WMC\Desktop\HassWP_2023.12.4\python-3.11.6.amd64\Lib\site-packages\hass_nabucasa\__init__.py", line 223, in login
    await self.auth.async_login(email, password)
  File "C:\Users\WMC\Desktop\HassWP_2023.12.4\python-3.11.6.amd64\Lib\site-packages\hass_nabucasa\auth.py", line 175, in async_login
    task = await self.cloud.update_token(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\WMC\Desktop\HassWP_2023.12.4\python-3.11.6.amd64\Lib\site-packages\hass_nabucasa\__init__.py", line 168, in update_token
    await self.run_executor(self._write_user_info)
  File "C:\Users\WMC\Desktop\HassWP_2023.12.4\python-3.11.6.amd64\Lib\concurrent\futures\thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\WMC\Desktop\HassWP_2023.12.4\python-3.11.6.amd64\Lib\site-packages\hass_nabucasa\__init__.py", line 257, in _write_user_info
    self.user_info_path.chmod(0o600)
  File "C:\Users\WMC\Desktop\HassWP_2023.12.4\python-3.11.6.amd64\Lib\pathlib.py", line 1132, in chmod
    os.chmod(self, mode, follow_symlinks=follow_symlinks)
  File "C:\Users\WMC\Desktop\HassWP_2023.12.4\python-3.11.6.amd64\Lib\site-packages\hass_win\__main__.py", line 142, in wrapper
    if path.endswith(".state"):
       ^^^^^^^^^^^^^
AttributeError: 'WindowsPath' object has no attribute 'endswith'
AlexxIT commented 6 months ago

I don't know if I can fix this. Because I don't have NabuCasa account for tests

tobycth3 commented 5 months ago

I'm not sure the error is limited to just NabuCase, it throws that error any time I try to enable remote access. I think it has to do more with the cert process than anything

rampagejoe commented 5 months ago

Same problem :(

rampagejoe commented 5 months ago

I don't know if I can fix this. Because I don't have NabuCasa account for tests

You can create free trial accounts for 30 days without any payment info

I could also provide an account for you Because this problem is actually really important to me

mtoo22 commented 1 month ago

Hope this can be resolved.