5
ONVIF 카메라로 XML 기본 API 요청을 보내는 중입니다.오류 : __tcp_connection_write_eof_block_invoke 닫기 콜백 수신 쓰기 오류 - iOS 10
2016-09-30 12:39:51.295419 VCPlugin[278:10183] [] nw_socket_get_input_frames recvmsg(fd 12, 1024 bytes): [54] Connection reset by peer
2016-09-30 12:39:51.301221 VCPlugin[278:10228] [] nw_socket_write_close shutdown(12, SHUT_WR): [57] Socket is not connected
2016-09-30 12:39:51.301307 VCPlugin[278:10228] [] nw_endpoint_flow_service_writes [3 10.107.2.153:80 ready socket-flow (satisfied)] Write request has 0 frame count, 0 byte count
2016-09-30 12:39:51.301903 VCPlugin[278:10185] [] __tcp_connection_write_eof_block_invoke Write close callback received error: [89] Operation canceled
2016-09-30 12:41:13.492053 VCPlugin[278:10287] [] __tcp_connection_write_eof_block_invoke Write close callback received error: [57] Socket is not connected
2016-09-30 12:42:51.278617 VCPlugin[278:10228] [] __tcp_connection_write_eof_block_invoke Write close callback received error: [22] Invalid argument
사용자 재시 경우 3-4 시간을 재 시도 :이 오류 메시지 아래
아이폰 OS (10)에 '500 내부 오류'를 제공하는 엑스 코드 8 콘솔 인쇄 IOS 9 장치에서 잘 작동하지만, 다음 서버에서 유효한 XML 응답을 얻은 후.
이 iOS 10 동작을 알지 못합니다.
이 내가 전화 XML API 포스트 요청에 대해 작성한 코드 :
NSMutableURLRequest * urlRequest = [NSMutableURLRequest requestWithURL:url];
[urlRequest setHTTPMethod:@"POST"];
[urlRequest setHTTPBody:body];
[urlRequest setValue: @"application/soap+xml" forHTTPHeaderField:@"Content-Type"];
[urlRequest setValue: @"application/soap+xml" forHTTPHeaderField:@"Accept"];
NSURLSessionDataTask * dataTask = [defaultSession dataTaskWithRequest:urlRequest completionHandler:^(NSData *data1, NSURLResponse *response, NSError *error) {
NSLog(@"Response:%@ %@\n", response, error);
if(error == nil)
{
NSString * text = [[NSString alloc] initWithData: data1 encoding: NSUTF8StringEncoding];
NSLog(@"Data = %@",text);
}
}];
[dataTask resume];
는 또한
Apple Form를 읽을 수 있지만 솔루션을 얻을 수 없습니다. > 계획 - -> 편집 계획
2) 실행 섹션을 제품에 이동),
1
저도 같은 문제를 가지고 있지만, 당신이 할 수있는 일이있다 :
감사합니다. Bhadresh, 귀하의 솔루션은 콘솔에서 메시지를 제거하는 데 도움이됩니다. 하지만 여전히 XML 응답에 '500 Internal Error'가 있습니다. – Punita
이 오류는 xml 유형 문제입니다. –
하지만이 동일한 코드는 iOS 9.0 및 이전 버전에서 잘 작동합니다. iOS 10에서만 '500 내부 오류'가 표시됩니다. – Punita