apache / apache/hertzbeat

[BUG] HTTP API 接口,配置请求Headers:Authorization发送请求,状态码提示401

Open
#1,941 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
7.4k
Forks
1.3k
Avg merge
1d 20h
Merged PRs (30d)
32

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

我使用postman可以通过请求,正常返回数据。需要携带Headers:Authorization,端口,请求相对路径,Content-Type,body这些都和postman一致。
HTTP API 接口不携带Headers请求的接口正常返回

### Expected Behavior

期望请求失败时,控制台打印curl格式的请求信息

### Steps To Reproduce

_No response_

### Environment

```markdown
HertzBeat version(s):1.5.0最新版本
```

### Debug logs

_No response_

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are identified. Reproduce the HTTP API request with the Authorization header and compare it with the successful Postman request, then trace how failed requests are logged. Done means the console prints a curl-formatted request when the request fails.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.