nacos-group / nacos-group/nacos-sdk-python
nacos 使用add_config_watcher, 报错 All server are not available, waiting for recovery
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 471
- Forks
- 155
- PR merge metrics
- No merged PRs in 30d
Description
nacos 使用add_config_watcher
threading.Thread(
target=self.client.add_config_watcher, args=(
self.data_id, self.group, run_watch
)
).start()
报错
ERROR:nacos.client:[do-sync-req] 127.0.0.1:18848 maybe down, no server is currently available
ERROR:nacos.client:[do-pulling] nacos exception: All server are not available, waiting for recovery
WARNING:nacos.client:[do-sync-req] server:127.0.0.1:18848 is not available for reason:
ERROR:nacos.client:[do-sync-req] 127.0.0.1:18848 maybe down, no server is currently available
但是 直接 data = self.client.get_config(self.data_id, self.group)
就没问题
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the add_config_watcher call shown in the issue and compare its behavior with the working get_config call. Reproduce the threaded watcher example and inspect the resulting server-availability errors. Done means the watcher can run successfully without the reported recovery errors under the same conditions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100