Skip to content

CA-406770: Improve error message #6537

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 23, 2025

Conversation

BengangY
Copy link
Contributor

  1. WLB request will raise wlb_authentication_failed when catching Http_client.Http_error. But actually only error code 401 and 403 should raise this type exception. For other error code, raise wlb_connection_reset. Also print the detail error code and message.
  2. message_forwarding raises same error for Http_request_rejected and Connection_reset so we don't know which exception actually be raised. Print detailed logs for these 2 exceptions.

@BengangY BengangY marked this pull request as ready for review June 16, 2025 12:04
@BengangY BengangY force-pushed the private/bengangy/CA-406770 branch 2 times, most recently from 3b4025c to 79f739b Compare June 23, 2025 08:04
1. WLB request will raise `wlb_authentication_failed` when catching
   `Http_client.Http_error`. But actually only error code 401 and 403
   should raise this type exception. For other error code, raise
   `wlb_connection_reset`. Also print the detail error code and
   message.
2. `message_forwarding` raises same error for `Http_request_rejected`
   and `Connection_reset` so we don't know which exception actually
   be raised. Print detailed logs for these 2 exceptions.

Signed-off-by: Bengang Yuan <[email protected]>
@BengangY BengangY force-pushed the private/bengangy/CA-406770 branch from 79f739b to 9d24689 Compare June 23, 2025 08:43
@BengangY BengangY added this pull request to the merge queue Jun 23, 2025
Merged via the queue into xapi-project:master with commit a7e874d Jun 23, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants