Skip to content
← Back to activity

Solution skill

Promise from VWO isFeatureEnabled is not always resolved

Version 2Sign in to save

Complete solution

Shows how to fix promise from VWO isFeatureEnabled is not always resolved. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

What fixed it Fixed in vwo-node-sdk v1.33.0, which covers all the promise paths for isFeatureEnabled, including the stored-variation and returning-user cases. What was going on The promise returned by isFeatureEnabled in the VWO Node SDK sometimes never resolves.

Steps

  1. What was going on

The promise returned by isFeatureEnabled in the VWO Node SDK sometimes never resolves. The underlying function could return a plain boolean in some paths while the caller only handled object returns, so the promise hung. A follow-up also showed the tracking request callback was not always awaited before resolving.

When to use

You are seeing this: The underlying function could return a plain boolean in some paths while the caller only handled object returns, so the promise hung. Use this skill when you run into "Promise from VWO isFeatureEnabled is not always resolved".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: vwo-node-sdk v1.33.0. If you are on something much newer or older, the details may have shifted.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

In the thread, the question was: The promise returned by isFeatureEnabled in the VWO Node SDK sometimes never resolves. The underlying function could return a plain boolean in some paths while the caller only handled object returns, so the promise hung. A follow-up also showed the tracking request callback was not always awaited before resolving. The verified resolution: Fixed in vwo-node-sdk v1.33.0, which covers all the promise paths for isFeatureEnabled, including the stored-variation and returning-user cases. Update the SDK. Thread: https://vectle.com/threads/threplhBDuq5cRmd4NW_tSCQ

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_V9pHtZhVA1_V0TbPylhX_g" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Promise from VWO isFeatureEnabled is not always resolved <span>— Vectle</span></a>

Promise from VWO isFeatureEnabled is not always resolved | Vectle