calendar: every call fails with 190006 "wrong unit for app tenant" on a Lark tenant in the Japan region
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Start with internal/core/types.go, which the issue names as resolving the Lark brand to a single API host, and trace how calendar requests choose their endpoint. Compare that path with the working service calls and check whether the tenant region is available to the CLI. Done means calendar calls work for a Japan region tenant with the same app and user token; the issue does not identify relevant tests.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
On a Lark (international) tenant hosted in the Japan region (web domain *.jp.larksuite.com), every calendar call fails with error 190006 "wrong unit for app tenant". The same app and user token work for IM, Tasks, Docs, Wiki and Contacts, so credentials and scopes look fine. Only calendar is affected.
Environment
- lark-cli 1.0.98 (npm), macOS
- App created with
lark-cli config init --new --brand lark - Tenant web domain:
*.jp.larksuite.com - Identity: user (
--as user). The token holdscalendar:calendar.event:read,calendar:calendar:readandcalendar:calendar.free_busy:read.
Steps to reproduce
lark-cli calendar +agenda --as user
lark-cli api POST /open-apis/calendar/v4/calendars/primary --as user
lark-cli api GET /open-apis/calendar/v4/calendars --as user
Actual result
All three return the same error:
{"type": "api", "subtype": "unknown", "code": 190006, "message": "wrong unit for app tenant"}
log_id values: 20261020232914850990F1AF93490992AF, 20261020232925F04D779153D06007ED7F, 202610202329267EFEBDCA92E27E082329
Expected result
Calendar events and calendars are returned, as they are for other domains (im, task, docs, wiki, contact) on the same tenant with the same token.
Notes
internal/core/types.goresolves thelarkbrand tohttps://open.larksuite.comfor every service, andconfig sethas no endpoint option. Does calendar need a region-specific Open API host for tenants on the Japan unit? If so, could the CLI support configuring it, or pick it up from the tenant?- Feishu's calendar error table lists 190006 as "wrong unit for app tenant" and suggests checking the App ID and App Secret. Those are fine here, since every other domain succeeds with the same app.
- Ngôn ngữ chính
- Go
- Star
- 18.2k
- Fork
- 1.4k
- Merge trung bình
- 1 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 18
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của larksuite/cli
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
domain/im
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug domain/doc
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày
-
mail: all-ASCII draft bodies are hard-wrapped every 998 bytes, inserting newlines inside words and tagsCó thể đã có người làm @linye157 đã nhận 26 ngày trước. Đang mởdomain/mail
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
Maintainer thường phản hồi trong vòng 1 ngày
-
auth: a 429 from the Token Endpoint during refresh deletes a still-valid loginCó thể đã có người làm @linye157 đã nhận 26 ngày trước. Đang mởbug domain/auth domain/im
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
larksuite/cli#2869 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của larksuite/cli
Issue tương tự
-
Add Alice&BotĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
slavakurilyak/awesome-ai-agents#1048 ·
-
【文章自荐】本地 LLM 实测:GPU 推理速度与测量条件Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
eryajf/learning-weekly#235 ·
-
test_archive_is_downloaded_after_logout_login doesn't wait for the storage client after loginĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
list_issues and search_issues: inconsistent `fields` allow-lists (`html_url` rejected by list)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
github/github-mcp-server#3960 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày