byUuid라는 필터가 프로필 리소스에 정의되었습니다.
설명 description
환경
- Campaign Standard
문제/증상
이름이 'byUuid'인 필터가 프로필 리소스에 정의되었습니다.
Postman에서 다음 오류로 API 요청이 실패했습니다.
요청: https://mc.adobe.io/*************/campaign/profileAndServices/profile/byUuid?uuid_parameter=xxxxx-xxxx-xxxx-xxxx
응답: RST-360011 오류가 발생했습니다. 관리자에게 문의하십시오.
BAS-010040 'byUuid'(텍스트 유형)를 32비트 정수 유형(bAS-010011 잘못된 데이터)으로 변환할 수 없습니다.
ACS에서 직접 테스트하는 경우 동일한 오류가 표시됩니다.
https://***************/rest/profileAndServices/profile/byUuid?uuid_parameter=xxxxxx-xxxx-xxxx-xxxxxx&__securitytoken=…
그리고 '/rest/head/profile'로 테스트를 수행하면 좋은 응답을 얻을 수 있습니다.
https://*********/rest/head/profile/byUuid?uuid_parameter=xxxxxx-xxxx-xxxxxxxxx&__securitytoken=…
/rest/head/profile'은 예상 URL이 아닙니다.
해결 방법 resolution
hasCustomFilter 매개 변수는 true로 설정해야 합니다.
아래에서는 코드의 예를 참조하십시오.
// initialize the sdk
const campaignClient = await CampaignStandard.init(params.tenant, params.apiKey, token)
// Get all profiles from Campaign Standard and filter by uuid
let parameters = {
filters: [ 'byUuid'] ,
uuid_parameter:
uuid, hasCustomFilter: true
}
const profiles = await campaignClient.getAllProfiles(parameters)
원인
사용되지 않는 우수 사례