Netty4 server无法记录或者回放
@lucas-myx is already working on this.
Since Mar 20, 2024.
Assessment
This issue has not been assessed yet.
Description
Steps to reproduce
deps: vertx-web 3.9.4
public class ServerVerticle extends AbstractVerticle {
@Override
public void start() {
Router router = Router.router(vertx);
router.get("/hello").handler(routingContext -> {
routingContext.response().end(new JsonObject().put("message", "Hello, World!").encode());
});
vertx.createHttpServer()
.requestHandler(router)
.listen(9998);
}
public static void main(String[] args) {
Vertx.vertx().deployVerticle(ServerVerticle.class.getName());
}
}
Environment
Compiler: 1.8
arex-agent-java: 0.4.0
Additional context
简单修复:
删除掉RequestTracingHandler:channelReadComplete
在ResponseTracingHandler#invoke方法中 添加
if (ContextManager.needReplay()) {
MockUtils.replayBody(mocker);
} else if (ContextManager.needRecord()) {
MockUtils.recordMocker(mocker);
}
CaseEventDispatcher.onEvent(CaseEvent.ofExitEvent());
- Dominant language
- Java
- Stars
- 566
- Forks
- 141
- Avg merge
- 36m
- Merged PRs (30d)
- 2
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from arextest/arex-agent-java
-
bug :lady_beetle:
Difficulty 4/5 3-5 days Newbie friendliness 42/100
arextest/arex-agent-java#626 · 1 comment ·
-
bug :lady_beetle:
Difficulty 4/5 3-5 days Newbie friendliness 35/100
arextest/arex-agent-java#620 · 1 comment ·
-
bug :lady_beetle:
Difficulty 4/5 3-5 days Newbie friendliness 38/100
arextest/arex-agent-java#617 ·
-
[Bug] java.lang.NoClassDefFoundError: org/springframework/web/servlet/mvc/method/RequestMappingInfo Openbug :lady_beetle:
Difficulty 4/5 3-5 days Newbie friendliness 35/100
arextest/arex-agent-java#615 ·
-
bug :lady_beetle:
Difficulty 4/5 3-5 days Newbie friendliness 35/100
arextest/arex-agent-java#614 · 1 comment ·
All issues in arextest/arex-agent-java
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100