We are building a middleware to sync data between SimPRO and Dynamic 2009. When we call the sandbox SimPRO API for getting SimPRO job number out of simPRO, we have timed out errors as below :
Code: Select all
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.WebException: The operation has timed out
at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
at System.Net.HttpWebRequest.GetRequestStream()
at PASimPROInterface.SimPROInterface.GetToken() in C:\Users\ebakk\source\repos\PASimPROInterface\PASimPROInterface\SimPROInterface.cs:line 243
at PASimPROInterface.SimPROInterface.SendGETRequest(String uri) in C:\Users\ebakk\source\repos\PASimPROInterface\PASimPROInterface\SimPROInterface.cs:line 190
at PASimPROInterface.SimPROInterface.GetJobs(DateTime _sinceWhen) in C:\Users\ebakk\source\repos\PASimPROInterface\PASimPROInterface\SimPROInterface.cs:line 44
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at ClrBridgeImpl.InvokeClrInstanceMethod(ClrBridgeImpl* , ObjectWrapper* objectWrapper, Char* pszMethodName, Int32 argsLength, ObjectWrapper** arguments, Boolean* argsAreByRef, Boolean* isException)
https://enterprise-sandbox-au.simprosui ... s/477/jobs
https://enterprise-sandbox-au.simprosui ... uth2/token
Could I have advice to overcome this?
Thank you