Article - CS252954
The setTimeout() JavaScript function used in a service fails with "Error: ReferenceError: setTimeout is not defined" in ThingWorx all releases
Modified: 27-Jan-2017
Applies To
- ThingWorx Platform 6.6 SP3 to 8.4
Description
- The SetTimeout() service failed with following error in ThingWorx
Error: ReferenceError: "setTimeout" is not defined
- While creating service in ThingWorx Composer no objection is raised by the ThingWorx Composer on using the setTimeout() function
- Use case scenarios are:
- Attempting to re-send emails if it fails to deliver in n number of attempts after waiting for certain amount of time
- Get controller connected to a Gateway if the initial connection failed due to any reason
This is a printer-friendly version of Article 252954 and may be out of date. For the latest version click CS252954