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

구토큰 사용 중 컴포넌트 사용 불가 #32

Open
kkqq9320 opened this issue Jan 24, 2025 · 1 comment
Open

구토큰 사용 중 컴포넌트 사용 불가 #32

kkqq9320 opened this issue Jan 24, 2025 · 1 comment

Comments

@kkqq9320
Copy link

안녕하세요 우기네님. 좋은 컴포넌트 만들어주셔서 감사드립니다.
잘 사용하고 있던 찰나에 최신버전 (2025.1.2)으로 업데이트 후 에러가 나기 시작합니다.

System Information

Attribute Value
Version core-2025.1.3
Installation type Home Assistant OS
Development false
Supervisor true
Docker true
User root
Virtual environment false
Python version 3.13.1
Operating system family Linux
Operating system version 6.6.66-haos
CPU architecture aarch64
Timezone Asia/Seoul
Configuration directory /config

Home Assistant Supervisor Information

Attribute Value
Host operating system Home Assistant OS 14.1
Update channel stable
Supervisor version supervisor-2024.12.3
Agent version 1.6.0
Docker version 27.2.0
Virtualization qemu

24시간 만료 갱신이 없는 구 토큰이고, 공식 컴포넌트는 문제없이 구동중입니다.
디버깅 로그를 확인해보니 지속적으로 동일한 에러 로그가 발생중입니다.

2025-01-24 20:39:07.415 ERROR (MainThread) [homeassistant.components.webhook] Error processing webhook 
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/webhook/__init__.py", line 192, in async_handle_webhook
    response: Response | None = await webhook["handler"](hass, webhook_id, request)
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/smartthings_customize/smartapp.py", line 548, in smartapp_webhook
    result = await manager.handle_request(data, request.headers)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/pysmartapp/smartapp.py", line 173, in handle_request
    raise SmartAppNotRegisteredError(req.installed_app_id)
pysmartapp.errors.SmartAppNotRegisteredError: SmartApp handler for installed app 'xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' was not found.

제가 잘 모르나 혹시 개인정보 일까봐 webhook 이후 숫자와 영문으로 구성된 문자값과 SmartApp handler for installed app xxx 값을 x로 대치했습니다.

항상 감사드립니다.

@oukene
Copy link
Owner

oukene commented Jan 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

2 participants