IBM Worklight 6.0.0.1 - Timeout setting in Adapters

前端 未结 1 624
無奈伤痛
無奈伤痛 2021-01-07 09:26

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

相关标签:
1条回答
  • 2021-01-07 09:35
    • The application is not calling the adapter. Basic diagram:

    Application << >>[ Worklight Server << >> Adapter ]<< >> Backend

    • Also, there is no maximum value Worklight imposes on timeouts. There's a default value, but you have changed it in all 3 locations.

    Short explanation:

    1. In initOptions.js, the timeout property relates to the amount of time the app will wait for a connection to the Worklight Server.

    2. 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.

    3. 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.

    • Verify that your can reach the server; follow the instructions from the error message - try to load Worklight Console in your device's mobile browser
    • Verify the device and server are in the same network
    • Verify the firewall (if enabled) is not blocking any crucial ports or addresses

    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.

    0 讨论(0)
提交回复
热议问题