mendopablo 0 Report post Posted July 21, 2013 I would like to know why I can’t connect to the CIAPI. I login with a demo account that works from my iPod. I receive this error: The remote server returned an error: NotFound. REQUEST INFO: ItemState : Pending Url : https://ciapipreprod.cityindextest9.co.uk/tradingapi/sessionMethod : POST Target : session Share this post Link to post
Guest sky.sanders Report post Posted July 25, 2013 I could be wrong but the issue appears to be with the test servers, not the client library. While the Phone7 assembly returns a ‘not found’, which is a quite common for Phone7 (i.e. silverlight) response for a multitude of errors, running the .CS integration tests also fail, the salient information being ----> 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 this indicates an infrastructure problem. emails have been sent to check on this. Share this post Link to post
mendopablo 0 Report post Posted August 5, 2013 I would like to know why I can’t connect to the CIAPI. I login with a demo account that works from my iPod. I receive this error: The remote server returned an error: NotFound. REQUEST INFO: ItemState : Pending Url : https://ciapipreprod.cityindextest9.co.uk/tradingapi/sessionMethod : POST Target : session This is the complete exception detail: CityIndex.JsonClient.ApiException was unhandled Message=The remote server returned an error: NotFound. REQUEST INFO: ItemState : Pending Url : http://ciapipreprod.cityindextest9.co.uk/TradingApi/session Method : POST Target : session UriTemplate : / Parameters : apiLogOnRequest: { “UserName”: “0x160”, “Password”: “*****” } Request URI :http://ciapipreprod.cityindextest9.co.uk/TradingApi/session Request Headers : CacheDuration : 00:00:00 RetryCount : 0 ThrottleScope : data Expiration : 0001-01-01 00:00:00Z ResponseText : ResponseText=“” StackTrace: at CityIndex.JsonClient.ApiAsyncResult`1.End() at CityIndex.JsonClient.Client.EndRequest[TDTO](ApiAsyncResult`1 asyncResult) at CIAPI.Rpc.Client.EndRequest[TDTO](ApiAsyncResult`1 asyncResult) at CIAPI.Rpc.Client.EndLogIn(ApiAsyncResult`1 asyncResult) at NGM.Business.Services.AuthenticationServices.AuthenticationService.<>c__DisplayClass4.<Connect>b__2(ApiAsyncResult`1 ar) at CityIndex.JsonClient.ApiAsyncResult`1..ctor(ApiAsyncCallback`1 cb, Object state, Boolean completed, String responseText, Exception error) at CityIndex.JsonClient.CacheItem`1.CompleteResponse(String json, Exception exception) at CityIndex.JsonClient.RequestController.<>c__DisplayClass6`1.<EnqueueRequest>b__5(IAsyncResult ar, RequestHolder requestHolder) at CityIndex.JsonClient.ThrottedRequestQueue.<>c__DisplayClass3.<ProcessQueue>b__1(IAsyncResult ar) at System.Net.Browser.ClientHttpWebRequest.<>c__DisplayClassa.<InvokeGetResponseCallback>b__8(Object state2) at System.Threading.ThreadPool.WorkItem.doWork(Object o) at System.Threading.Timer.ring() InnerException: System.Net.WebException Message=The remote server returned an error: NotFound. StackTrace: at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state) at System.Net.Browser.ClientHttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at CityIndex.JsonClient.RequestController.<>c__DisplayClass6`1.<EnqueueRequest>b__5(IAsyncResult ar, RequestHolder requestHolder) at CityIndex.JsonClient.ThrottedRequestQueue.<>c__DisplayClass3.<ProcessQueue>b__1(IAsyncResult ar) at System.Net.Browser.ClientHttpWebRequest.<>c__DisplayClassa.<InvokeGetResponseCallback>b__8(Object state2) at System.Threading.ThreadPool.WorkItem.doWork(Object o) at System.Threading.Timer.ring() InnerException: System.Net.WebException Message=The remote server returned an error: NotFound. StackTrace: at System.Net.Browser.ClientHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult) at System.Net.Browser.ClientHttpWebRequest.<>c__DisplayClass2.<EndGetResponse>b__1(Object sendState) at System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__1(Object sendState) at System.Reflection.RuntimeMethodInfo.InternalInvoke(RuntimeMethodInfo rtmi, Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess, StackCrawlMark& stackMark) at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, StackCrawlMark& stackMark) at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) at System.Delegate.DynamicInvokeOne(Object[] args) at System.MulticastDelegate.DynamicInvokeImpl(Object[] args) at System.Delegate.DynamicInvoke(Object[] args) at System.Windows.Threading.Dispatcher.<>c__DisplayClass4.<FastInvoke>b__3() at System.Reflection.RuntimeMethodInfo.InternalInvoke(RuntimeMethodInfo rtmi, Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess, StackCrawlMark& stackMark) at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, StackCrawlMark& stackMark) at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) at System.Delegate.DynamicInvokeOne(Object[] args) at System.MulticastDelegate.DynamicInvokeImpl(Object[] args) at System.Delegate.DynamicInvoke(Object[] args) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.Dispatch(DispatcherPriority priority) at System.Windows.Threading.Dispatcher.OnInvoke(Object context) at System.Windows.Hosting.CallbackCookie.Invoke(Object[] args) at System.Windows.Hosting.DelegateWrapper.InternalInvoke(Object[] args) at System.Windows.RuntimeHost.ManagedHost.InvokeDelegate(IntPtr pHandle, Int32 nParamCount, ScriptParam[] pParams, ScriptParam& pResult) Share this post Link to post
Guest sky.sanders Report post Posted August 5, 2013 works for me. i have updated the test and sample source code and everything works as expected. there will be a push later this (my) afternoon. Share this post Link to post