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

Unknown error occured #93

Closed
jlvandusen opened this issue Feb 21, 2025 · 13 comments
Closed

Unknown error occured #93

jlvandusen opened this issue Feb 21, 2025 · 13 comments

Comments

@jlvandusen
Copy link

I am receiving the unknown error occured after configuring the integration initially, I can clearly see the Sections and libraries from pulldown = I can see the plex server.
however when making any change... I click Submit I receive the unknown error

The Error
Logger: aiohttp.server
Source: /usr/local/lib/python3.13/site-packages/aiohttp/web_protocol.py:451
First occurred: 1:48:09 PM (5 occurrences)
Last logged: 1:49:35 PM

Error handling request from 104.28.204.44
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/aiohttp/web_protocol.py", line 480, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/web_app.py", line 569, in _handle
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 86, in ban_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware
response = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle
result = await handler(request, **request.match_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 81, in with_admin
return await func(self, request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 285, in post
return await super().post(request, flow_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 74, in wrapper
return await method(view, request, data, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 121, in post
result = await self._flow_mgr.async_configure(flow_id, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 340, in async_configure
result = await self._async_configure(flow_id, user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 387, in _async_configure
result = await self._async_handle_step(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
flow, cur_step["step_id"], user_input
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 490, in _async_handle_step
result: _FlowResultT = await getattr(flow, method)(user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/plex_recently_added/options_flow.py", line 47, in async_step_init
self._config_entry.data = updated_data
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 465, in setattr
raise AttributeError(
f"{key} cannot be changed directly, use async_update_entry instead"
)
AttributeError: data cannot be changed directly, use async_update_entry instead

The sensor card doesnt show any output

Home Assistant Version
Lates 2025.2

@mkanet
Copy link
Collaborator

mkanet commented Feb 21, 2025

Hi, I didn't see where you mentioned which version you are using. In any case, please completely remove the integration, reboot, then add the latest version back. Latest version released is version 0.5.1. There have been recent changes needed to add this integration to HACS.

@jlvandusen
Copy link
Author

Home assistant
Core 2025.2.4
Supervisor 2025.02.1
Operating System 14.2
Frontend 20250214.0

Plex recently Added
.5.1

James

mkanet added a commit that referenced this issue Feb 21, 2025
- Fixed issue during reconfiguration reported here: #93

- Added ability to show download number in HACS
@mkanet
Copy link
Collaborator

mkanet commented Feb 21, 2025

@jlvandusen thanks for reporting this issue so quickly. I was able to reproduce the issue and fix it. Please try 0.5.2. It will allow you to reconfigure the integration without unknown error occurring. Let me know how it goes.

@jlvandusen
Copy link
Author

It wont let me download it

This error originated from a custom integration.
Logger: custom_components.hacs
Source: custom_components/hacs/repositories/base.py:979
integration: HACS (documentation, issues)
First occurred: 4:59:20 PM (3 occurrences)
Last logged: 5:00:14 PM

<Integration custom-components/sensor.plex_recently_added> Failed to download https://github.com/custom-components/sensor.plex_recently_added/releases/download/tags/0.5.2/plex_recently_added.zip

@mkanet
Copy link
Collaborator

mkanet commented Feb 21, 2025

Can you try it again? I just made a change.

@medoix
Copy link

medoix commented Feb 22, 2025

It appears the release package does not exist at the URL provided so is unable to be downloaded by the updater or even downloaded via HACS.

https://github.com/custom-components/sensor.plex_recently_added/releases/download/tags/0.5.2/plex_recently_added.zip

This link works

https://github.com/custom-components/sensor.plex_recently_added/archive/refs/tags/0.5.2.zip

@mkanet
Copy link
Collaborator

mkanet commented Feb 22, 2025

Can you try one more time please?

@medoix
Copy link

medoix commented Feb 22, 2025

Package path still does not exist

<Integration custom-components/sensor.plex_recently_added> Failed to download https://github.com/custom-components/sensor.plex_recently_added/releases/download/tags/0.5.2/plex_recently_added.zip

Image

@Blackduke77
Copy link

Blackduke77 commented Feb 22, 2025

the same issue, but I see another release available to download with no version information, i would expect to see an upgrade available not a new release.

Image

@mkanet
Copy link
Collaborator

mkanet commented Feb 22, 2025

@jlvandusen @medoix @Blackduke77 sorry for the hassle. The issue should now be resolved. Please try the latest 0.5.2 release again. The file should be available as it passed validation.

PS: This was the last step hopefully needed before this integration gets added back on HACS.

@medoix
Copy link

medoix commented Feb 23, 2025

@mkanet it works now! Thank you.

@mkanet mkanet closed this as completed Feb 23, 2025
@bckthomas
Copy link

Hi
I have the same error with the last version 0.5.2 downloaded from this link https://github.com/custom-components/sensor.plex_recently_added/archive/refs/tags/0.5.2.zip

Home assistant
Core 2025.2.5
Supervisor 2025.02.1
Operating System 14.2
Interface utilisateur 20250221.0

Do I miss something ?
Thanks

@mkanet
Copy link
Collaborator

mkanet commented Feb 24, 2025

Hi I have the same error with the last version 0.5.2 downloaded from this link https://github.com/custom-components/sensor.plex_recently_added/archive/refs/tags/0.5.2.zip

Home assistant Core 2025.2.5 Supervisor 2025.02.1 Operating System 14.2 Interface utilisateur 20250221.0

Do I miss something ? Thanks

Please install from scratch version 0.5.3. It should prevent the issue you are seeing as long as you remove the integration and install from scratch/cleanly.**

mkanet added a commit that referenced this issue Feb 24, 2025
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

5 participants