larksuite / larksuite/cli

执行lark-cli config init命令提示被拒绝

Open
#337 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

domain/core
Dominant language
Go
Stars
17.3k
Forks
1.4k
Avg merge
2d 4h
Merged PRs (30d)
105

Description

本地并没有开防火墙,执行命令的时候wireshark并没有抓到包,为什么会拒绝?以下是执行指令打印的信息:

C:\Windows\System32>lark-cli config init
{
"ok": false,
"error": {
"type": "auth",
"message": "app registration failed: Post "https://accounts.feishu.cn/oauth/v1/app/registration\": dial tcp 183.60.149.62:443: connectex: No connection could be made because the target machine actively refused it."
}
}

C:\Windows\System32>curl -v https://accounts.feishu.cn/oauth/v1/app/registration

  • Trying 183.60.149.62:443...
  • Connected to accounts.feishu.cn (183.60.149.62) port 443 (#0)
  • schannel: disabled automatic use of client certificate
  • ALPN: offers http/1.1
  • ALPN: server accepted http/1.1

GET /oauth/v1/app/registration HTTP/1.1
Host: accounts.feishu.cn
User-Agent: curl/7.83.1
Accept: /

  • Mark bundle as not supporting multiuse
    < HTTP/1.1 404 Not Found
    < Server: Tengine
    < Content-Type: text/plain
    < Content-Length: 9
    < Connection: keep-alive
    < Date: Wed, 08 Apr 2026 11:10:58 GMT
    < X-Envoy-Response-Flags: -
    < To-Env:
    < X-Lgw-Dst-Svc: 5sWitSwQtPEa3p2CMRt34tt1QV7ZZRxl-WWGbqc1Ju3kxx90XtqG4LejAnaX6iKRb9QEUNPKD_pLVQsaaduWdCDuO2ZYEiEv8sluc285pPoxaSIm8vpwEg-tBqua-w11miv6s891uBUTrsw6qslHB3hYu5qEwYEG5wcRL15D5zERLmZSS1aihCVRX8b4F-8vmynHg-MJ-lMuSOJBcMx21cRSUWUFKqrFsWlmG72t7dWBdtDWIXhjJehwghf2s6mCfyVYMkLqi147OT4baYKAcUBvHVjkRXqrcyIOZwRZoRANBF6w4370ytZyiCYGExsfQ--4sX4f-As=
    < Tt_stable: 1
    < X-Request-Id: 3ecb689c-3b23-4f6b-87e4-acd13c709a06
    < Request-Id: 3ecb689c-3b23-4f6b-87e4-acd13c709a06
    < x-tt-logid: 20260408191058B92F53EBBAD525A9ED14
    < Strict-Transport-Security: max-age=31536000
    < server-timing: inner; dur=12
    < x-tt-trace-host: 0143ce8917965e972002c049a8424e10723446427f20ab5262b9fcd1c02f3439a9577b1928f252867d8867d08448fbb9a4a2a8591d8d0b3dff22aa482aa170d07f23d5dcb7d6915a0d3fdcc2c62e750a6b32f6e8c62ed8f949652f86e83f8460a5
    < x-tt-trace-tag: id=03;cdn-cache=miss;type=dyn
    < x-tt-trace-id: 00-260408191058B92F53EBBAD525A9ED14-29A0C0D92803E7B5-00
    < X-Timestamp: 1775646658.492
    < x-alicdn-da-ups-status: endOs,0,404
    < Via: cache10.cn8753[51,0]
    < Timing-Allow-Origin: *
    < EagleId: b73c951e17756466584604154e
    <
    Not Found* Connection #0 to host accounts.feishu.cn left intact

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 by reproducing lark-cli config init and comparing its app-registration request with the supplied curl output for the Feishu endpoint. Trace the CLI path that reports the connection refusal; done means identifying the cause of the discrepancy and documenting or fixing the observed behavior, with an available regression check.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
authentication, cli, networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.