I got an Exception
Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo=0x1fd68a20 {NSErrorFailingURLStringKey=http://mac-mini.local/~user/restcon/auth?username=&password=, NSErrorFailingURLKey=http://mac-mini.local/~user/restcon/auth?username=&password=, NSLocalizedDescription=The request timed out., NSUnderlyingError=0x1fd25730 "The request timed out."}
How can I get the NSLocalizedDescription?
If I 'po 0x1fd68a20' in debugger, I can get the NSDictionary I want.
But the [exception userInfo] returns me nil.
Assuming your exception is in an object of type NSException, try
NSString *errorDescription = [exception.error.userInfo valueForKey:NSLocalizedDescriptionKey].
Related
I'm creating accounts using the json rpc for NEAR but when things fail, there isn't really an error that is passed back, so I'm unable to catch anything.
The object with key status is a test, this is returned after the function call has finished, but if there are no errors to catch, I can't tell if anything failed.
How are you catching errors here.
Receipts: 4epNvrYNDK2u4p7K4RKMqbqmoV6WMKjCFtE926uiTQEu, HMnN8FXcJVT4PjQxi5RAmBLLRn2gNaZwgDkNKXX66jj5
Failure [myaccount.mintspace2.testnet]: Error: {"index":0,"kind":{"ExecutionError":"Smart contract panicked: panicked at 'Failed to deserialize input from JSON.: Error(\"missing field `receiver_id`\", line: 1, column: 79)', store/src/core.rs:41:1"}}
{
status: 'success',
}
error": {
"code": "ExtensionError",
"message": "Operation: Read; Exception: [Status Code: 429; Reason: Resource 'OData_GetSubscription__UserMailbox_f' has reached limit of '250'. Please retry after '2/17/2022 3:53:22 PM']",
}
how can I resolve this error
Exception Message: TF30063: You are not authorized to access http://Server Name/tfs/Collection Name. (type TeamFoundationServerUnauthorizedException) Exception Stack Trace: at Microsoft.TeamFoundation.Build.Hosting.BuildMachine.StartOperation.End(IAsyncResult result, HttpRouter& router, TfsMessageQueue& messageQueue, List`1& processHosts, MachineLifecycleActivity& traceActivity) at Microsoft.TeamFoundation.Build.Hosting.BuildMachine.EndStart(IAsyncResult result) at Microsoft.TeamFoundation.Build.Machine.WindowsService.EndStartMachine(IAsyncResult result) Inner Exception Details: Exception Message: The remote server returned an error: (401) Unauthorized. (type WebException)Status: ProtocolError Response Status Code: Unauthorized Response Status Message: Unauthorized Exception Stack Trace: at System.Net.HttpWebRequest.GetResponse() at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.SendRequestAndGetResponse(HttpWebRequest webRequest, WebException& webException)
Try to add the port number of your sever, default is 8080:
http://ServerName:8080/tfs/CollectionName
then i swoosh media to Chromecast, in app "didFailToLoadMediaWithError" delegate call.
didFailToLoadMediaWithError = Error Domain=com.google.GCKError Code=9 "Request is not allowed in this state" UserInfo=0x171871600 {NSLocalizedDescription=Request is not allowed in this state
how it catch this error in receiver side?
in receiver log i get:
[ 37.552s] [goog.net.XhrIo] Will abort after 10000ms if incomple
I have a problem within one of my camel routes. It is a route that handles soap requests and does some exchanges...
After the exchange the route just hangs and after setting logging to TRACE I found out, that camel does an endless converting, that never stops:
2015-09-24 10:24:03,227 [TRACE]
(org.apache.camel.impl.converter.DefaultTypeConverter:231) -
Converting org.apache.camel.impl.DefaultMessage -> java.lang.String
with value: Message: Message: Message: Message: Message: Message:
Message: Message: Message: Message: Message: Message: Message:
Message: Message: Message: Message: Message: Message: Message: [Body
is null] 2015-09-24 10:24:03,230 [TRACE]
(org.apache.camel.impl.converter.DefaultTypeConverter:231) -
Converting org.apache.camel.impl.DefaultMessage -> java.lang.String
with value: Message: Message: Message: Message: Message: Message:
Message: Message: Message: Message: Message: [Body is null] 2015-09-24
10:24:03,232 [TRACE]
(org.apache.camel.impl.converter.DefaultTypeConverter:231) -
Converting org.apache.camel.impl.DefaultMessage -> java.lang.String
with value: Message: Message: Message: Message: Message: Message:
Message: Message: Message: Message: [Body is null] 2015-09-24
10:24:03,234 [TRACE]
(org.apache.camel.impl.converter.DefaultTypeConverter:231) -
Converting org.apache.camel.impl.DefaultMessage -> java.lang.String
with value: Message: Message: Message: Message: Message: Message:
Message: Message: Message: [Body is null]
...
This seems to happen after an exchange, before sending the message to an remote soap endpoint.
Strangely I have some other routes, where this works without hanging in the endless loop.
I just updated to camel 2.15.3, but this still happens.
I'm using java 7 and tomcat 7.
How can I find out, where the problem is and how to fix this?
Thanks, C
I found out, why the endless converting happened: It was our proxy server, that blocked the request being send to the forreign endpoint...