|
|
In case when an error occurs on server and it returns response with corresponding code (it may be 400, 500 or any other error code), a DataServiceRequestException is thrown by OData library. But its m_response property seems to be improperly initialized.
@catch (DataServiceRequestException *e) {
QueryOperationResponse *response = e.m_response;
NSInteger statusCode = response.m_statusCode;
// statusCode is zero!
}
|
|
Coordinator
Oct 13, 2010 at 7:04 PM
|
Thanks for reporting the issue.
Added to the list of bugs to fix in the next release.
Claudio
|
|
|
|
Hello!
The only reason why you would get a status code of zero is when the exception occurs on the client side (while building the request). Are you sure a request was even sent to the server? Please verify.
The status code of zero means the error occurred while the request was being assembled on the client side.
|
|