afex / hystrix-go

Netflix's Hystrix latency and fault tolerance library, for Go
MIT License
4.24k stars 477 forks source link

Get the original error? #114

Open liuaiyuan opened 3 years ago

liuaiyuan commented 3 years ago

output:

fallback failed with '{"id":"user.srv","code":500,"detail":"error","status":"Internal Server Error"}'. run error was 'hystrix: timeout'

How can I get the original error?

gazandic commented 3 years ago

its already printed on https://github.com/afex/hystrix-go/blob/master/hystrix/hystrix.go#L293.

that's timeout error that came from https://github.com/afex/hystrix-go/blob/master/hystrix/hystrix.go#L190

You may extend your timeout