How can I change the timeout when calling from the application to the adapter using WL.Client.invokeProcedure
?
I have read the answer in the following p
Application << >>[ Worklight Server << >> Adapter ]<< >> Backend
Short explanation:
In initOptions.js, the timeout
property relates to the amount of time the app will wait for a connection to the Worklight Server.
In the adapter's XML, the requestTimeoutInSeconds
property relates to the amount of time the Worklight Server will wait for a response from the Backend.
In the invocation options, the timeout
property relates to the amount of time the app will wait for a response from the Worklight Server.
In your case, the error points that you did not even reach the Worklight Server, let alone invoke the adapter procedure.
In case you did reach the Worklight Server, since obviously 600 seconds did not pass, I believe that the host is simply not reachable. Make sure that you are pointing to the correct host address and that nothing is preventing a connection to pass successfully.
If the host was found, and something else is not correct in the path or network, a response will be returned, but it will not wait 600 seconds.