buger / goreplay

GoReplay is an open-source tool for capturing and replaying live HTTP traffic into a test environment in order to continuously test your system with real data. It can be used to increase confidence in code deployments, configuration changes and infrastructure changes.
https://goreplay.org
Other
18.46k stars 9 forks source link

Java Middleware decode fail #1198

Closed 1528992118 closed 1 year ago

1528992118 commented 1 year ago

Hello, I have encountered a problem. When using Java middleware as a custom filter for gorpaly, I encountered an error from gorpaly. The specific error is as follows:

[DEBUG][elapsed 155.795µs]: [MIDDLEWARE] command["java -Dgoreplay.config.skipKeyTenantCheck=true -Djasypt.encryptor.password=******* -Dapollo.meta=http://middleware-apollo-configservice.middleware:8080 -Dapollo.bootstrap.namespaces=hpc-group.redis,hpc-group.public-redis -Denv=hpc-uat-9 -Dapollo.cluster=hpc-uat-9 -jar goreplay-java.jar"] failed to decode err: "encoding/hex: invalid byte: U+001B"

I don't quite understand this error. Is it a problem with goreplay processing the output stream of Java middleware? Can this error be ignored? The main purpose of using Java middleware now is to filter out some requests that do not require attention and add an additional HTTP header

1528992118 commented 1 year ago

I have solved this problem , because Java middleware uses a third-party library, which may result in additional output during runtime and requires control over the output of the third-party library