nacos-group / nacos-group/nacos-sdk-python

包含端口后的域名作为地址,解析报错

Open
#108 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
471
Forks
155
PR merge metrics
No merged PRs in 30d

Description

如果直接使用包含端口号的域名作为服务的server_address,会导致连接错误,client.py中parse_nacos_server_addr函数没有对这种进行处理

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in client.py at parse_nacos_server_addr and reproduce the connection error with a server_address containing a port in the domain. Trace how that address is parsed, then verify that the resulting address connects correctly when the port is included.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
networking
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.