기존에 있던 다음 이미지 검색에서 제목과 같이 에러가 발생합니다.
whitelist에 bundleid가 벗어났다고하길래, com.xxx.xxxx 이런거 입력해놨습니다.
그런데도 안되는 이유는 뭘까요. request header에 뭐 해줘야 하나요?
{
errorType = AccessDeniedError;
message = “bundleId mismatch”;
}
failed - error : Error Domain=com.alamofire.error.serialization.response Code=-1011 “Request failed: unauthorized (401)” UserInfo={com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x618000027820> { URL: https://apis.daum.net/search/image?apikey=&output=json&q=daum } { status code: 401, headers {
Connection = “keep-alive”;
“Content-Type” = “application/json;charset=UTF-8”;
Date = “Thu, 27 Jul 2017 00:22:42 GMT”;
Server = nginx;
“Transfer-Encoding” = Identity;
“X-Request-Id” = “b481d050-7261-11e7-b6a9-5b82d71124d1”;
} }, NSErrorFailingURLKey=https://apis.daum.net/search/image?apikey=____&output=json&q=daum, com.alamofire.serialization.response.error.data=<7b226572 726f7254 79706522 3a224163 63657373 44656e69 65644572 726f7222 2c226d65 73736167 65223a22 62756e64 6c654964 206d6973 6d617463 68227d>, NSLocalizedDescription=Request failed: unauthorized (401)}