googleapis / googleapis/google-api-nodejs-client
Sheets `clear` operation breaks with HTTP/2
- Ngôn ngữ chính
- TypeScript
- Star
- 12.2k
- Fork
- 2k
- Merge trung bình
- 1 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 24
Mô tả
### Please make sure you have searched for information in the following guides.
- [x] Search the issues already opened: https://github.com/GoogleCloudPlatform/google-cloud-node/issues
- [x] Search StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform+node.js
- [x] Check our Troubleshooting guide: https://github.com/googleapis/google-cloud-node/blob/main/docs/troubleshooting.md
- [x] Check our FAQ: https://github.com/googleapis/google-cloud-node/blob/main/docs/faq.md
- [x] Check our libraries HOW-TO: https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md
- [x] Check out our authentication guide: https://github.com/googleapis/google-auth-library-nodejs
- [x] Check out handwritten samples for many of our APIs: https://github.com/GoogleCloudPlatform/nodejs-docs-samples
### 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
```
however the output is
```
finish get 200
```
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
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với gist công khai được liên kết và tái hiện thao tác clear của Sheets khi bật HTTP/2, sau đó so sánh với hành vi HTTP/1.1 đang hoạt động. Theo dõi đường dẫn client được gist sử dụng và xác minh bản sửa bằng cách quan sát phản hồi clear thành công, đồng thời kiểm tra rằng sheet được chỉ định thực sự đã được xóa.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- node.js, typescript
- Lĩnh vực
- api, networking
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 45/100