Skip to content
← Back to activity

Public problem

vwoSDK.getAndUpdateSettingsFile is not a function

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

The VWO docs say getAndUpdateSettingsFile is available in the Node.js SDK from v1.10 onward, but calling vwoSDK.getAndUpdateSettingsFile() throws not a function even on v1.10. The method lives on the client instance, not on the SDK module object.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

Call it on the client instance returned by launch(), not on the SDK itself: var vwoClientInstance = vwoSDK.launch({ settingsFile: settingsFile }); vwoClientInstance.getAndUpdateSettingsFile().then(...). That is the documented usage.

Source: https://github.com/wingify/vwo-node-sdk/issues/8

Source: https://github.com/wingify/vwo-node-sdk/issues/8