Skip to content
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

Fix the use of req_error() for chat_azure() #269

Merged
merged 1 commit into from
Jan 24, 2025
Merged

Conversation

atheriel
Copy link
Collaborator

Previously we were trying to access a non-existent field in the response. Now we show both the error code and the message. For example:

Error in `req_perform_connection()` at elmer/R/httr2.R:36:3:
! HTTP 401 Unauthorized.
• PermissionDenied: Principal does not have access to API/Operation.

Previously we were trying to access a non-existent field in the
response. Now we show both the error code and the message. For example:

    Error in `req_perform_connection()` at elmer/R/httr2.R:36:3:
    ! HTTP 401 Unauthorized.
    • PermissionDenied: Principal does not have access to API/Operation.

Signed-off-by: Aaron Jacobs <[email protected]>
@hadley
Copy link
Member

hadley commented Jan 24, 2025

Came up in #271 too.

@hadley hadley merged commit 752855b into main Jan 24, 2025
11 checks passed
@hadley hadley deleted the fix-azure-req-error branch January 24, 2025 18:41
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.

2 participants