Repository navigation
fix: getCoordinatorInfo throws while zigbee-herdsman is not started - #3043
Merged
Merged
Conversation
getCoordinatorInfo() is a method of the adapter, but the "not connected" branch read this.adapter.config.autostart - this.adapter is undefined there, so every call before zigbee-herdsman has started (e.g. the admin tab open during adapter start) ended in the catch block and logged "exception raised in getCoordinatorInfo" without any detail. Use this.config.autostart and include the error message in the warning. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Q82LhA9wBMqm1L1powvy6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
getCoordinatorInfo()is a method of the adapter class (main.js), but the "not connected" branch readsthis.adapter.config.autostart.this.adapterisundefinedthere, so every call before zigbee-herdsman has started (e.g. the admin tab or config page open while the adapter starts) throws. Thecatchonly logsexception raised in getCoordinatorInfowithout any detail.Fix
this.adapter.config.autostart→this.config.autostart(2 places)Tested
On my installation (3.6.0-dev, ZStack over LAN): before, every adapter start with the config page/tab open logged
exception raised in getCoordinatorInfo(once or twice). With the fix: restart with the config page open → no warning.Install for testing:
https://github.com/Schimi1983/ioBroker.zigbee/tarball/fix/coordinator-info-log🤖 Generated with Claude Code
https://claude.ai/code/session_013Q82LhA9wBMqm1L1powvy6