You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We got the Forbidden exception while collaborating to Shield folder in box and the error message is " Box.V2.Exceptions.BoxAPIException: The API returned an error [Forbidden | s5h46dh2e1hyml6m.05dd0bec8c5cae65ff903a40774c844d1] forbidden_by_policy - Access denied by Shield policy", but we do not get the ErrorCode "forbidden_by_policy" in ex.ErrorCode to classify this exception.
We establish collaboration to a box shield folder with external user email.
Customer has box shield feature in their enterprise account and I do not have the same feature in my dev account. I just logged the ex.ErrorCode value into database error log to check and found that it is empty. You can simply reproduce this with your internal box account which has box shield.
We got the Forbidden exception while collaborating to Shield folder in box and the error message is " Box.V2.Exceptions.BoxAPIException: The API returned an error [Forbidden | s5h46dh2e1hyml6m.05dd0bec8c5cae65ff903a40774c844d1] forbidden_by_policy - Access denied by Shield policy", but we do not get the ErrorCode "forbidden_by_policy" in ex.ErrorCode to classify this exception.
https://developer.box.com/guides/api-calls/permissions-and-errors/common-errors/#403-forbidden
try {
// establish collaboration
}
catch (BoxAPIException ex) {
// ex.ErrorCode is empty. no value here
}
Please fix this.
The text was updated successfully, but these errors were encountered: