Get timed out error when trying to get an authentication token from SimPRO sandbox

Posts about the simPRO API. Help/support/how-to etc.
Forum rules
  • Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
  • No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
  • Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
  • Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
  • Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
  • Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
  • Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
  • Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
Post Reply
RyanHuynh
Posts: 5
Joined: Tue Jun 06, 2023 11:01 pm

Get timed out error when trying to get an authentication token from SimPRO sandbox

Post by RyanHuynh » Sun Sep 03, 2023 11:47 pm

Hi SimPRO support,

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)
This timed-out error happened at least for the following two endpoints but I don’t think it is limited to any particular endpoint.

https://enterprise-sandbox-au.simprosui ... s/477/jobs
https://enterprise-sandbox-au.simprosui ... uth2/token

Could I have advice to overcome this?

Thank you
Post Reply