databricks-sdk-go icon indicating copy to clipboard operation
databricks-sdk-go copied to clipboard

[ISSUE] SCIM API sends `int` for `error_code`, but our `APIErrorBody` expects string

Open nfx opened this issue 1 year ago • 0 comments
trafficstars

GET /api/2.0/preview/scim/v2/Users?attributes=id,userName,displayName&count=100&startIndex=1
> * Host: 
> * Accept: application/json
> * Authorization: REDACTED
> * User-Agent: watchdog/0.0.1 databricks-sdk-go/0.36.0 go/1.22.1 os/darwin sdk-feature/pagination auth/databricks-cli
< HTTP/2.0 403 Forbidden
< * Content-Length: 178
< * Content-Type: application/json; charset=utf-8
< * Date: Thu, 05 Sep 2024 17:11:25 GMT
< * Server: databricks
< * Vary: Accept-Encoding
< * X-Databricks-Reason-Phrase: This API is disabled for users without the databricks-sql-access or workspace-access entitlements. Contact your administrator for more information.
< * X-Request-Id: bc201272-c4df-478e-8cd3-8d3b4e121f36
< {
<   "error_code": 403,
<   "message": "This API is disabled for users without the databricks-sql-access or workspace-access entitlements. Contact your administrator for more information."
< }

nfx avatar Sep 05 '24 17:09 nfx