Object request failed: Underlying HTTP request operation failed with error: Error Domain=NSURLErrorDomain Code=-1012 " - objective-c

I am using restkit and am trying to hit https site from my simulator.
iPad simulator taking the system proxy while sending the request i guess and proxy blocked these request .
Same code works fine when i run in iPad device.
Any one please help me.
Error i get is
I restkit.network:RKObjectRequestOperation.m:174 POST 'https://myurl.net/api/auth/entry'
2013-07-19 18:06:43.515 Dashboard[19149:4703] E restkit.network:RKObjectRequestOperation.m:570 Object request failed: Underlying HTTP request operation failed with error: Error Domain=NSURLErrorDomain Code=-1012 "The operation couldn’t be completed. (NSURLErrorDomain error -1012.)" UserInfo=0x85806d0

Want to declare below line in Build setting pre process macros not use....... option
_AFNETWORKING_ALLOW_INVALID_SSL_CERTIFICATES_

Related

Error webdriver when testing appium (native to webview)

When I tried to make automation with robot, there is an error when apps change from native to webview. This is the error message.
WebDriverException: Message: An unknown server-side error occurred
while processing the command. Original error: Could not proxy. Proxy
error: Could not proxy command to the remote server. Original error:
timeout of 240000ms exceeded

Login item Helper app not opening the main app cocoa

In my mac app when i am trying to set run at startup getting message in console com.companyname.myhelperapp[14002]: registration request failed: (0x10, 0x3) The code signature is not valid: The operation couldn’t be completed. (OSStatus error -2147409652.)
this was working fine from more than a year but getting this wierd issue .
Any Suggestions ?
Thanks in Advance!!

okhttp 3.7.0 SSL Shutdown failed threw UnknownHostException and not SSLException

While making a network request with low connectivity very rarely I see that I get
<-- HTTP FAILED: java.net.UnknownHostException: Unable to resolve host ....
while my server seems to have got the request correctly. I found 1 instance of it with device logs which shows actually an SSLException happened
D/NativeCrypto: jniThrowException: javax/net/ssl/SSLException: Read error: ssl=0x7dc365f080: I/O error during system call, Software caused connection abort
D/NativeCrypto: jniThrowException: javax/net/ssl/SSLException: SSL shutdown failed: ssl=0x7dc365f080: I/O error during system call, Broken pipe
My question is why does okhttp and retrofit throw UnknownHostException and not SSLException, and is there a way to actually get the SSLException as currently my app thinks the request did not go while server processes that request.
I am using
okhttp:3.10.0
retrofit:2.2.0
adapter-rxjava2:2.2.0

How to get proper https server response in apache camel DSL?

I am trying to hit https server using https4 component I want to get whatever response the server throwing it maybe success or failed here is my route.
from("direct:start")
.setHeader(Exchange.HTTP_QUERY,constant("USERNAME=__&PASSWORD=__"))
.to("https4://someAddress.com/api/controls/uploadAndImportFileFromCSV")
.to("stream:out");
Output I'm getting:
org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[ID-rajat-Lenovo-G50-70-1513247400372-0-1]
org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1847)
.........
Caused by: org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking https4://someAddress.com/api/controls/uploadAndImportFileFromCSV?USERNAME=__&PASSWORD=__ with statusCode: 599
But whenever I hit this URL on web browser I am getting the accurate response what server throws
like {"sessionId":"2985416A1F1122694031261B55F0277F.jvm1","_ERROR_MESSAGE_LIST_":[" The following required parameter is missing: [IN]uploadAndImportFile.configId]","The following required parameter is missing: [IN][uploadAndImportFile.fileTypeEnumId]"],"removePathAlias":false,"loggedIn":true,"USERNAME":"admin","_LOGIN_PASSED_":"TRUE","webSiteId":"API"}
This is what I want to get from camel
After a brief browsing about camel exception randomly I got my solution is already clearly mention on org.apache.camel.http4.
If throwExceptionOnFailure=false the HttpOperationFailedException will not be thrown for failed response codes. This allows you to get any response from the remote server.
from("direct:start")....to("https4://.......?throwExceptionOnFailure=false")

Labview Instrument Error: A service request has not been received for the session

I'm trying to get a Labview VI working. However, I'm getting an error on the KE6485 Multi-read sub-VI with the error "Driver Status: (Hex 0xBFFF004A) Error - A service request has not been received for the session". Does anyone have a suggestion on steps I could take to fix this?