You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
he953481025-debug
changed the title
bug: plugin api-breaker set response body occur 500 Internal Error
bug: plugin api-breaker set response headers occur 500 Internal Error
Jun 11, 2022
Current Behavior
Use api-breaker to set circuit breaker
Expected Behavior
When the upstream service is not available, return my desired json
Error Logs
Steps to Reproduce
1.configure api-breaker of plugin
{ "break_response_code": 200, "max_breaker_sec": 300, "unhealthy": { "http_statuses": [ 500, 502, 503 ], "failures": 3 }, "healthy": { "http_statuses": [ 200 ], "successes": 3 }, "break_response_body": "{\"code\":\"0\",\"msg\":\"new json body\"}", "break_response_headers": [{"content-type":"application/json"}] }
2.When I remove break_response_headers, the plugin works fine
Environment
The text was updated successfully, but these errors were encountered: