5) AIP SDK 에러 메시지에 따른 Status Code 정의
AIP SDK 에러 메시지에 따른 Status Code 정의
설명
- AIP SDK 에러 메시지에 따라 SDF Container의 Status Code가 정의 된다.
- 참고 : https://wiki.softcamp.co.kr/x/Nh2MBg
Error Code
Status Code | SDK Error Message | Description |
---|---|---|
400 | The service didn't accept the auth token. | 다른 테넌트의 MIP 오피스 파일 |
400 | Broken zip file | MIP로 암호화되었지만 손상되어 있는 파일 |
400 | Template IDs must be well-formed GUIDs | 존재하지 않는 Protection Template ID 사용 |
404 | Protection is not exist | - 암호화 되지 않은 일반 문서 - 가짜 오피스 파일 (jpg 확장자를 docx로 변경) |
403 | Failed to get tenantid :xx4d615af9-1d04-4bcc-8e6f-c6b6fe3110dd | 인증인가에 등록되어 있지 않은 Azure TenantID 사용 |
429 | Maximum number of attempts exceeded | Timeout(10초) 또는 최대 시도 횟수 초과(mip-restapi 와 mip-worker 사이) |
503 | MSAL error. Failed to get token | MSAL 오류 - MSAL 라이브러리에서 tenant의 Credential 로 토큰 요청을 했는데 토큰을 얻지 못했을때 (retry도 실패) |
Examples
Response
Status code : 400 Bad Request
{
"code": 60001,
"message": "com.microsoft.informationprotection.internal.gen.Error: AccessDeniedError: The service didn't accept the auth token. Challenge:['Bearer resource=\"https://aadrm.com\", realm=\"e8c1b6e5-37ed-4c84-82e9-f5a02feddd85\", authorization=\"https://login.windows.net/e8c1b6e5-37ed-4c84-82e9-f5a02feddd85/oauth2/authorize\"'], CorrelationId=c893364f-7c12-462d-85a2-68991bbc12ea, CorrelationId.Description=FileEngine"
}