I have this error in requesting data from api.. All I want is to get only the message "The request timed out." in NSLocalizedDescription. How to get that? heres the return error below.
Error Domain=NSURLErrorDomain Code=-1001 "The request timed out."
UserInfo=0xa5bd490 {NSErrorFailingURLStringKey=api url,
NSErrorFailingURLKey=api url, NSLocalizedDescription=The request timed
out., NSUnderlyingError=0xa5763b0 "The request timed out."}
I solved already this problem issue...
NSString *getError = error.localizedDescription;
Related
I get the following error when i try to connect iOS app to walletconnect
Task <D190A2B9-E403-4DE1-B9F5-527F29D9D50D>.<1> finished with error [-1005] Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost."
UserInfo={NSErrorFailingURLStringKey=https://safe-walletconnect.safe.global/, NSErrorFailingURLKey=https://safe-walletconnect.safe.global/,
_NSURLErrorRelatedURLSessionTaskErrorKey=("LocalWebSocketTask <D190A2B9-E403-4DE1-B9F5-527F29D9D50D>.<1>"),
_NSURLErrorFailingURLSessionTaskErrorKey=LocalWebSocketTask <D190A2B9-E403-4DE1-B9F5-527F29D9D50D>.<1>,
NSLocalizedDescription=The network connection was lost.}
Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost."
UserInfo={NSErrorFailingURLStringKey=https://safe-walletconnect.safe.global/,
NSLocalizedDescription=The network connection was lost.,
NSErrorFailingURLKey=https://safe-walletconnect.safe.global/}
WC: Connection error: The network connection was lost.
WC: didDisconnect url: https://safe-walletconnect.gnosis.io/
The used bridge :
let bridge = "https://safe-walletconnect.gnosis.io/
Can any body help me with this ? any suggestions ?
The same code was working something has changed
Thanks in advance :)
Replace "https://safe-walletconnect.gnosis.io/" URL With
"https://bridge.walletconnect.org"
Hi I am getting this error
PBRequester failed with Error Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." UserInfo={NSErrorFailingURLStringKey=https://gsp10-ssl.apple.com/use, _kCFStreamErrorCodeKey=8, NSErrorFailingURLKey=https://gsp10-ssl.apple.com/use, NSLocalizedDescription=The Internet connection appears to be offline., _kCFStreamErrorDomainKey=12, NSUnderlyingError=0x19735570 {Error Domain=kCFErrorDomainCFNetwork Code=-1009 "The Internet connection appears to be offline." UserInfo={_kCFStreamErrorCodeKey=8, NSErrorFailingURLStringKey=https://gsp10-ssl.apple.com/use, NSErrorFailingURLKey=https://gsp10-ssl.apple.com/use, NSLocalizedDescription=The Internet connection appears to be offline., _kCFStreamErrorDomainKey=12}}}
I know this error came because internet connection is loss in middle.But I am not getting how to handle this error?
I'm trying to run the samples from https://github.com/aspnet/home.
But I'm having problems updating the references. The restore is very slow and fails for some packages:
GET http://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?id='Microsoft.Framework.Configuration.EnvironmentVariables'
Warning: FindPackagesById: Microsoft.Framework.Configuration.EnvironmentVariables
HTTP request timed out. Retrying.
GET http://www.nuget.org/api/v2/FindPackagesById()?id='Microsoft.Framework.Configuration.EnvironmentVariables'
Warning: FindPackagesById: Microsoft.Framework.Configuration.Ini
HTTP request timed out. Retrying.
GET http://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?id='Microsoft.Framework.Configuration.Ini'
Warning: FindPackagesById: Microsoft.Framework.Configuration.Ini
HTTP request timed out. Retrying.
GET http://www.nuget.org/api/v2/FindPackagesById()?id='Microsoft.Framework.Configuration.Ini'
Warning: FindPackagesById: Microsoft.Framework.Logging
HTTP request timed out. Retrying.
GET http://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?id='Microsoft.Framework.Logging'
Warning: FindPackagesById: Microsoft.Framework.Logging
HTTP request timed out. Retrying.
GET http://www.nuget.org/api/v2/FindPackagesById()?id='Microsoft.Framework.Logging'
Warning: FindPackagesById: Newtonsoft.Json
HTTP request timed out. Retrying.
GET http://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?id='Newtonsoft.Json'
Warning: FindPackagesById: Newtonsoft.Json
HTTP request timed out. Retrying.
GET http://www.nuget.org/api/v2/FindPackagesById()?id='Newtonsoft.Json'
Error: FindPackagesById: Microsoft.AspNet.Mvc.Razor
HTTP request timed out. Exiting.
I tried with different urls using nuget, myget, http, https.
I checked my internet connection.
There is a related issue in the dnx repo, but it did not help.
Any workaround to try?
I'm using mono 4.0.3.20 on CentOS.
Here is the workaround:
export MONO_THREADS_PER_CPU=2000
from http://www.mono-project.com/archived/articlethreadpool_deadlocks/
I have used code from here https://stackoverflow.com/a/16977731/2262863 and faced an issue when server returns 404 response. I have added to process url only if response have been 200 returned. But from what I see, code doesn`t continue with other urls. Here is an error I am getting:
System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
Tried to stop task, but got same issue.
After the line where Sub(word) starts I have added try/catch method.
Try
Dim url = word
Dim request = DirectCast(WebRequest.Create(url), HttpWebRequest)
..........
End Using
Catch ex As Exception
Console.WriteLine(ex.toString)
End Try
End Sub)
So the tasks are continued and process doesn`t stop.
i m trying to perform load testing on "https://tickleb.parseapp.com" using jmeter.
but every time m getting the errors
Response code: Non HTTP response code: javax.net.ssl.SSLException
Response message: Non HTTP response message: Received fatal alert: protocol_version
Response headers:
HTTPSampleResult fields:
ContentType:
DataEncoding: null
Please provide me tips to achieve the solution.
thanks.