From 2e5bce51e27af4b8626d766ebfe5ca3ed377dc25 Mon Sep 17 00:00:00 2001
From: brock-statsig <146870406+brock-statsig@users.noreply.github.com>
Date: Sat, 21 Dec 2024 16:52:29 -0800
Subject: [PATCH] added novalues (#2428)
* added novalues
* typo
* added Loading and Uninit
* fix broken image
---
docs/sdks/debugging.mdx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/docs/sdks/debugging.mdx b/docs/sdks/debugging.mdx
index 0ebb9abeb..380d46476 100644
--- a/docs/sdks/debugging.mdx
+++ b/docs/sdks/debugging.mdx
@@ -34,7 +34,7 @@ When debugging why a certain user got a certain value, there are a number of too
### Evaluation Reason
**Evaluation reasons** are a way to understand why a certain value was returned for a given check. All SDKs provide the [Data Source](/client/javascript-sdk/init-strategies/) - which is where your Statsig Client/Server instance is getting its data. Newer SDKs also provide a Reason, which lets you know if an individual check was valid or overridden versus how you've initialized. These reasons are intended to be used for debugging and internal logging purposes only, and are sometimes updated in new SDK versions.
-
+
@@ -54,6 +54,9 @@ When debugging why a certain user got a certain value, there are a number of too
| `Error` | An unknown error has occurred, and was logged to Statsig servers.| Error| Reach out to us in [Slack](https://statsig.com/slack) for support. |
| `Error:NoClient` (js-client-only) | No client was found in your StatsigContext. | Error | You've likely made a call to a Statsig hook outside of a ``, verify your setup and try again. |
| `Unrecognized` (old SDKs) | The SDK was initialized, but this gate/experiment/config did not exist in the set of values.| Error| Confirm the experiment or gate is configured in the Statsig console and you're using the correct API key.|
+ | `NoValues` | You've attempted to initialize, but it didn't successfully retrieve values. | Error | You're either calling initializeSync before users have cached values, or your call to initializeAsync has failed (check that your client key is correct!) |
+ | `Loading` | You've tried to initialize, but it hasn't finished yet. | Error | If you're using initializeAsync, you may need to await it, or otherwise prevent config checks before values are loaded. |
+ | `Uninitialized` | You haven't attempted to initialize yet. | Error | Ensure you're explicitly calling initializeAsync() or initializeSync(), or check if you've passed any StatsigOptions that could prevent network requests from happening. |
### #2. Reason (new SDKs only)