Android Developer: `productId` argument required inconsistency
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 65/100
Hướng nghiên cứu
The issue points to the AndroidPublisher.java file line 21976 where a precondition check on subscriptionId occurs. First, examine the generated client library structure and the API specification to understand the parameter requirement. Check if the method can be overloaded or the precondition relaxed. Running the provided code example will reproduce the error. Verify the fix by testing with a null subscriptionId as per the API docs.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
hi!
in the Android Developer API, the purchases.subscriptions.acknowledge method has a subscriptionId path parameter, which the docs specify is not required and not recommended in some scenarios (docs link).
it seems the Java client library in this repo has a non-null precondition on subscriptionId, failing the request client-side (see code). should this be updated in the generated client library, either by overloading this method or allowing null values for this param?
Environment details
google-api-services-androidpublisher version: v3-rev20260909-2.0.0 (maven central)
Code example
client.purchases()
.subscriptions()
.acknowledge(appName, null, purchaseToken, requestBody) // throws precondition error
.execute();
External references such as API reference guides
- https://developers.google.com/android-publisher/api-ref/rest/v3/purchases.subscriptions/acknowledge#path-parameters
- https://github.com/googleapis/google-api-java-client-services/blob/main/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/AndroidPublisher.java#L21976
- Ngôn ngữ chính
- Java
- Star
- 725
- Fork
- 394
- Merge trung bình
- 45 phút
- Pull request đã merge (30 ngày)
- 240
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 googleapis/google-api-java-client-services
-
priority: p3 type: docs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
-
priority: p3 type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 50/100
googleapis/google-api-java-client-services#29581 · 2 bình luận ·
-
priority: p3 type: feature request
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
googleapis/google-api-java-client-services#29317 · 1 bình luận ·
-
priority: p3 type: bug
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
googleapis/google-api-java-client-services#26505 · 7 bình luận · 1 reaction ·
-
priority: p3 type: bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
Tất cả issue của googleapis/google-api-java-client-services
Issue tương tự
-
certification
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's Đang mởbug ecr
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Needs: Triage Type: Feature request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
AntennaPod/AntennaPod#8794 ·
-
agentic-workflows
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
github/copilot-sdk#2760 ·