ReaderRevenueSubscriptionLinking: Unexpected POST Request Instead of PATCH When Calling `UpdateEntitlements`
还没有人认领这个 Issue。
评估
调研方向
从引用的源代码行中的 SubscriptionLinking.java 生成的 UpdateEntitlements 方法开始,然后跟踪 NetHttpTransport 和 ApacheHttpTransport 如何构造请求。使用列出的库版本重现该调用,并比较发出的 HTTP 方法;当 NetHttpTransport 像 ApacheHttpTransport 一样为 UpdateEntitlements 发送 PATCH 时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
When instantiating SubscribewithGoogle using com.google.api.client.http.javanet.NetHttpTransport, and calling the UpdateEntitlements method from the Reader Revenue Subscription Linking API (v1), a POST request is sent instead of the expected PATCH request.
Reference:
UpdateEntitlements method source
https://github.com/googleapis/google-api-java-client-services/blob/700b41fb705bb8b817f5d4103ccfed5f411866e6/clients/google-api-services-readerrevenuesubscriptionlinking/v1/2.0.0/com/google/api/services/readerrevenuesubscriptionlinking/v1/SubscriptionLinking.java#L649
Environment details
-
OS Type and Version
Windows 11 (64-bit) -
Java Version
1.8.0_60
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) Client VM (build 25.60-b23, mixed mode) -
Library Versions
implementation 'com.google.api-client:google-api-client:2.6.0'
implementation 'com.google.auth:google-auth-library-oauth2-http:1.23.0'
implementation 'com.google.apis:google-api-services-androidpublisher:v3-rev20240709-2.0.0'
implementation 'com.google.apis:google-api-services-readerrevenuesubscriptionlinking:v1-rev20250611-2.0.0'
implementation 'org.apache.httpcomponents:httpclient:4.5.13'
- Build Tools
- Gradle 7.0.2
- Apache Ant(TM) version 1.10.9
- JVM: 1.8.0_60 (Oracle Corporation 25.60-b23)
Steps to reproduce
- Instantiate
SubscribewithGoogleusingcom.google.api.client.http.javanet.NetHttpTransport. - Call the
UpdateEntitlementsmethod from the Reader Revenue Subscription Linking API v1.
Any additional information below
Additionally, although deprecated, we confirmed that using an instance of com.google.api.client.http.apache.ApacheHttpTransport results in a PATCH request being sent as expected.
- 主要语言
- Java
- 星标
- 725
- 派生
- 394
- 平均合并
- 45 分钟
- 30 天内合并 PR
- 240
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
googleapis/google-api-java-client-services 的其他 Issue
-
priority: p3 type: docs
难度 1/5 1 小时以内 新手友好度 88/100
-
难度 3/5 1-2 天 新手友好度 65/100
-
priority: p3 type: bug
难度 2/5 1-3 小时 新手友好度 50/100
googleapis/google-api-java-client-services#29581 · 2 条评论 ·
-
priority: p3 type: bug
难度 5/5 一周以上 新手友好度 35/100
googleapis/google-api-java-client-services#26505 · 7 条评论 · 1 个 reaction ·
-
priority: p3 type: bug
难度 3/5 1-2 天 新手友好度 35/100
查看 googleapis/google-api-java-client-services 的全部 Issue
相似的 Issue
-
area/plugin
难度 2/5 1-3 小时 新手友好度 75/100
kestra-io/plugin-kestra#190 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
integra-team-red/meet-map#249 ·
-
[Studio][Bug] Cancelled create-user dialog keeps the password and admin switch for the next attempt 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
apache/rocketmq-dashboard#5064 ·