还未发布过话题


  • 贴主,为啥我按照你的流程走,不放参数根本不行呢。不管是以 header 方式还是参数方式传入 traceid,都报 500。 带上参数就 OK。
    贴主有遇到吗?

    失败的:
    输入:curl -s 'http://localhost:8080/greeting' -H "Repeat-TraceId-X:010052114254159186298222210001ed"
    输出:{"timestamp":"2020-06-11T08:12:55.211+0000","status":500,"error":"Internal Server Error","message":"No message available","path":"/greeting"}

    输入:curl -s 'http://localhost:8080/greeting?Repeat-TraceId-X=010052114254159186298222210001ed'
    输出:{"timestamp":"2020-06-11T08:17:34.929+0000","status":500,"error":"Internal Server Error","message":"No message available","path":"/greeting"}

    成功的:
    输入:curl -s 'http://localhost:8080/greeting?name=lisi' -H "Repeat-TraceId-X:010052114254159186298222210001ed"
    输出:{"id":11,"content":"Hello, lisi!"}

    失败日志:
    2020-06-11 16:12:55 INFO find invocation by PARAMETER_MATCH,but similarity not match similarity=0.7,identity=java://hello.GreetingController/greeting~(Ljava/lang/String;) Lhello/Greeting;, invocation=com.alibaba.jvm.sandbox.repeater.plugin.domain.Invocation@57b82d7
    2020-06-11 16:17:34 INFO find invocation by PARAMETER_MATCH,but similarity not match similarity=0.7,identity=java://hello.GreetingController/greeting~(Ljava/lang/String;) Lhello/Greeting;, invocation=com.alibaba.jvm.sandbox.repeater.plugin.domain.Invocation@17923ab0