Sheets `clear` operation breaks with HTTP/2

未关闭
#3,602 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
停滞
领域
api, networking

调研方向

从链接的公开 gist 开始,在启用 HTTP/2 的情况下重现 Sheets 的 clear 操作,然后将其与正常工作的 HTTP/1.1 行为进行比较。跟踪 gist 使用的客户端路径,并通过观察成功的 clear 响应以及确认指定的 sheet 确实已被清除来验证修复。

由索引模型根据 Issue 内容生成。

描述

Please make sure you have searched for information in the following guides.
A screenshot that you have tested with "Try this API".

N/A

Link to the code that reproduces this issue. A link to a public Github Repository or gist with a minimal reproduction.

https://gist.github.com/neil-lobo/e632aae751fe7aec8bbc29a42c585015

A step-by-step description of how to reproduce the issue, based on the linked reproduction.
  1. Save credentials.json file with correct access to sheet to root of project
  2. Replace [sheet ID] with accessible sheet
  3. Run script
  4. Observe output
  5. Turn off http2
  6. Observe output
A clear and concise description of what the bug is, and what you expected to happen.

Using the http2 option, the clear operation does not work. I assume https://github.com/googleapis/google-api-nodejs-client/issues/1801#issuecomment-524921412 is no longer the case since there is an explicit option to enable http2 now.

Referring to the gist, the expected output is

finish get 200
finish clear 200
<end of program>

however the output is

finish get 200
<end of program>

Disabling http2 produces the correct output. Note that this is not simply a response issue, the operation itself does not reflect in the specified sheet.

A clear and concise description WHY you expect this behavior, i.e., was it a recent change, there is documentation that points to this behavior, etc. **

Breaks usage

主要语言
TypeScript
星标
12.3k
派生
2k
平均合并
3 天 10 小时
30 天内合并 PR
9

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

googleapis/google-api-nodejs-client 的其他 Issue

查看 googleapis/google-api-nodejs-client 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。