Fokko opened a new pull request, #5416:
URL: https://github.com/apache/iceberg/pull/5416

   The /token endpoint can return an OAuthErrorResponse as part of a HTTP400.
   
   
https://github.com/apache/iceberg/blob/master/open-api/rest-catalog-open-api.yaml#L1675-L1695
   
   This has a different structure as the other error responses:
   
   ```json
   {"error": "invalid_client", "error_description": "Credentials for key 
invalid_key do not match"}
   ```
   
   Instead of:
   
   ```json
   {
       "error": {
           "message": "Invalid client ID: abc",
           "type": "BadCredentialsException",
           "code": 401,
       }
   }
   ```
   
   Therefore we check this and format the exception before throwing it


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to