Postcatlab / Postcatlab/postcat

入参选择上传二进制文件时,node层服务报错,导致请求失败

Open
#333 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.5k
Forks
796
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug

使用`postcat网页版`,测试上传功能接口时,入参通过选择以`二进制 Binary` 的方式,上传了一张图片后,点击发送按钮后,显示测试服务连接失败
![请求报错](https://github.com/Postcatlab/postcat/assets/46205649/e40401f2-82d3-4042-81dc-6aaeb5200a83)

通过拉取代码,在本地跑postcat代码和node服务后,重复上述操作,发现node层出现报错信息
```bash
cd src/browser
npm-run-all -p start:testServer start:zh
```
![node层代码](https://github.com/Postcatlab/postcat/assets/46205649/0fa9b459-6926-4e36-829b-1f3b5b9d8559)

在官网体验地址中[https://postcat.com/](https://postcat.com//) 发现该功能同样无法正常请求,希望能早日修复,谢谢~

### Environment

- Postcat Version [0.5.1]
- OS [Windows 10]

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure in src/browser using `npm-run-all -p start:testServer start:zh`, then inspect the Node service output while sending an image through the Binary upload input. Compare this with a working request and use the reported error shown in the issue screenshots to locate the upload path. Done means binary image requests complete successfully in both the local service and the Postcat web experience.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.