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.
Related
I am facing issue while sending file from Sterling File Gateway to external FTP Server using FTPS Protocol setup. Recently the certificate on server side has been expired and we have added the renewed cert on our B2bi and SSP with Root,Intermediate, public cert.
From there we started to Handshake failures on Perimeter logs.
Error:
ERROR [TLSCheck.validCerta] validateErr not 0, failing check: 4
ERROR [TLSCheck. validCerts) error (s) is/are: ERR_CERT OTHER ERROR,
Caused by: javax.net.ssl.SSLHandshakeException: General SSLEngine problem
Caused by: java.security.cert.CertificateException: [TLSCheck.certificateCallback] toolkit level returns false
Please let me know what could be the issue.
Thanks in Advance
I am fetching a report from my apache including a 41000 rows data report and it gives me following error. I checked the logs and there is no exception there:
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /reporting/cards/TransactionHistory_cp_trd_trid1.rpt.
Reason: Error reading from remote server
But when I fetched about 20000 rows, it fetched perfectly.
I am configuring coveo in sitecore. I am following the steps configuring for on-premises as given below link.
https://developers.coveo.com/display/public/SitecoreV3/Setting+Up+Coveo+for+Sitecore
https://developers.coveo.com/display/public/SearchREST/Windows+Service+Configuration+File
But I am getting below exception
Exception: Coveo.Search.Api.Proxy.CouldNotRetrieveSearchTokenException
Message: Could not retrieve a search token
Source: Coveo.Search.Api.Proxy
at Coveo.Search.Api.Proxy.SearchTokenStore.RetrieveNewSearchToken(UserID[] p_UserIds)
at Coveo.Search.Api.Proxy.SearchTokenStore.GetSearchToken(UserID[] p_UserIds)
at Coveo.Search.Api.Proxy.ProxyHttpHandler.AddSearchTokenToRequest(HttpContext p_Context, HttpWebRequest p_Request)
at Coveo.Search.Api.Proxy.ProxyHttpHandler.SetDefaultResponse(HttpContext p_Context)
at Coveo.SearchProvider.Rest.SitecoreRestHttpHandler.OnReverseProxyRequest(HttpContext p_Context)
at Coveo.Search.Api.Proxy.ProxyHttpHandler.ProcessRequest(HttpContext p_Context)
Nested Exception
Exception: System.Net.WebException
Message: The remote server returned an error: (403) Forbidden.
Source: System
at System.Net.HttpWebRequest.GetResponse()
at Coveo.Search.Api.Proxy.SearchTokenStore.RetrieveNewSearchToken(UserID[] p_UserIds)
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 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;