1
나는 ruby on authentication에서 devise를 사용하고 있습니다. 한 번에 한 단계 씩 수행하여 인증 전에 결과를 검색하기 위해 쿠키 인증을 비활성화했습니다. 내 브라우저에 가서 Alamofire 방문하는 URL로 이동하는 경우swift 3 alamofire - 응답 요청에 응답하지 않음
는,이 같은 JSON 형식으로 결과를 얻을 :
Alamofire.request(requestPath, method: .get, parameters: [:], encoding: JSONEncoding.default, headers: [:]).responseJSON { (response) in
if (response.result.isFailure) {
completion(false, "")
} else {
if let result = response.result.value {
completion(true, result)
}
}
}
:
{"id":250,"name":null,"username":"walker","bio":null,"gender":null,"birth_date":null,"profile_image_url":null}
나는이 같은 alamofire 요청을 요청 해요
이것은 Alamofire 요청의 완료 처리기 내부에서 볼 수있는 완료 처리기를 제공하는 다른 방법의 모든 것입니다.
매번 오류가 발생합니다.
오류는 말한다 : 내가 잘못 뭐하는 거지
responseSerializationFailed : ResponseSerializationFailureReason
?
문제를 찾으셨습니까? – thierryb
나는 게시물 대신에 요청을 보내야 만했다 – Walker
이것은 당신이 당신이 한 일이다. 그렇지 않은가? – thierryb