Skip to content

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

Merged
hadley merged 1 commit into
mainfrom
fix-azure-req-error
Jan 24, 2025
Merged

Fix the use of req_error() for chat_azure()#269
hadley merged 1 commit into
mainfrom
fix-azure-req-error

Conversation

@atheriel

Copy link
Copy Markdown
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 <aaron.jacobs@posit.co>
@hadley

hadley commented Jan 24, 2025

Copy link
Copy Markdown
Member

Came up in #271 too.

@hadley hadley merged commit 752855b into main Jan 24, 2025
@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