Common failure modes and how to recover from them.
The NxtOne SDK runs inside your application's own process, so every problem shows up in your service — its logs, its environment, its network — not in a separate NxtOne component. Most issues fall into one of three buckets: the SDK is not loaded, the SDK has no API key, or its events cannot leave your network. Identifying the bucket first is what makes everything else fast — the three have almost nothing in common, and the fixes never overlap.
The SDK writes to your application's stderr, so its lines appear wherever your service's logs already go. Filter for them:
| Runtime | A healthy start looks like |
|---|---|
| Java | nxtone: agent attached (pid=…), then nxtone: application ready — capture window open |
| Node.js | NXTONE_SESSION_ID=<uuid> |
| Python | The SDK logs at warn by default. Set NXTONE_LOG_LEVEL=debug to see what it is doing. |
| What you see | What it means | Go to |
|---|---|---|
| No NxtOne lines at all (Java, Node.js) | The SDK never loaded. Bucket 1. | Section 2, check 1 |
| A hint that the API key is missing | The SDK is running as a no-op: your app works normally, but nothing is sent. Bucket 2. | Section 2, check 2 |
| Healthy startup lines, but an empty dashboard | Events are not leaving your network (bucket 3), or they are filed under a project you are not viewing. | Section 6, then section 3 |
By far the most common report, and almost always one of five things. Work down the list — each step rules out everything above it:
| # | Check | How | If this is it |
|---|---|---|---|
| 1 | Is the SDK loaded? | Look for the startup lines in section 1. | Java: the Spring Boot starter must be on the runtime classpath; outside Spring Boot, Nxtone.attach() must be the first line of main(). Python: the @nxtone.NxtOneAgent decorator (or nxtone.run(main)) must wrap your entry point. Node.js: start with node --import @nxtone/agent/register, or call await nxtone.init() before the server listens. |
| 2 | Does the process have a key? | Test the variable inside the running container (below). | NXTONE_API_KEY is set somewhere that is not the running process. Without it the SDK is a silent no-op — it never crashes your app, which is exactly why this is easy to miss. |
| 3 | Can it reach NxtOne? | Test outbound HTTPS from inside the container (section 6). | Egress to the NxtOne API or Amazon S3 on port 443 is blocked, or a proxy is intercepting TLS. |
| 4 | Are you looking at the right project? | Compare NXTONE_PROJECT_ID with the project selected in the UI. | The variable is unset, so events are filed under the SDK's fallback project — see section 3. |
| 5 | Is the traffic excluded? | Review NXTONE_EXCLUDE and any exclusions in your SDK config file. | An over-broad exclusion silently drops everything interesting. Narrow it and restart. |
Check the key without printing it:
NXTONE_API_KEY on that deployment, a different start command, or an exclusion that matches only their package names.NXTONE_PROJECT_ID groups execution flows. When it is not set, the SDK falls back to a default that is not service-specific, so separate services can collapse into a single project:
| Runtime | Fallback when NXTONE_PROJECT_ID is unset |
|---|---|
| Java | unknown |
| Node.js | unknown |
| Python | The project root folder name — services built from images that share a working directory such as /app can all resolve to the same name. |
Set it explicitly on every service:
Spring Boot applications can use the nxtone.project-id property instead, and Node.js can pass projectId to nxtone.init().
The Java SDK copies its JAR into the JVM's temp directory (/tmp by default) at startup; if it can't, it logs nxtone: agent attach failed and the service runs uninstrumented. The Python SDK creates a nxtone/ directory under the system temp directory at startup. If these services run with a read-only root filesystem, mount an emptyDir (or a tmpfs in Docker) at /tmp. The Node.js SDK writes nothing to disk, so Node.js services need no change:
| Situation | What to do |
|---|---|
| JDK 21 or later | Add -XX:+EnableDynamicAgentLoading to your java command. |
| Shaded uber-JAR | Set NXTONE_AGENT_JAR to the path of the SDK JAR. Passing -javaagent also works, but is never required. |
The SDK batches events in memory and flushes them when your process exits. If the orchestrator kills the process before that flush finishes, the last batch is lost. Use the exec form of CMD/ENTRYPOINT so your app is PID 1 and receives SIGTERM directly, then check the flush budget against your grace period:
| Runtime | Flush budget at shutdown | What to check |
|---|---|---|
| Java | Up to 5 s (NXTONE_SHUTDOWN_TIMEOUT_SECONDS) | Fits within Docker's 10-second and Kubernetes' 30-second defaults. |
| Node.js | Fixed at 5 s | Start your app with node directly — npx nxtone run does not forward SIGTERM to it. |
| Python | Up to 60 s by default (NXTONE_SHUTDOWN_TIMEOUT) | Longer than Docker's 10-second and Kubernetes' 30-second defaults: raise stop_grace_period / terminationGracePeriodSeconds, or lower the timeout. The SDK installs no SIGTERM handler — it flushes at interpreter exit or on ASGI lifespan shutdown — so your server must handle SIGTERM and exit normally. |
The SDK makes outbound HTTPS connections only. It opens no ports and needs no ingress rule. The destination is built into public SDK builds and cannot be redirected with an environment variable, so allow these hosts rather than trying to point the SDK elsewhere:
| Direction | Destination | Port | Required |
|---|---|---|---|
| Egress | NxtOne API — api.nxtone.ai (Java), www.api.nxtone.ai (Python, Node.js) | 443 | Yes. |
| Egress | Amazon S3 | 443 | Yes — the SDK uploads large values through presigned S3 URLs. |
| Egress | Package registries | 443 | Build time only. Never needed at run time. |
| Inbound | — | — | None. The SDK never listens. |
Test from inside the container:
If your services reach the internet through a forward proxy, the proxy must allow these destinations.
If your proxy re-signs TLS, the SDK sees an untrusted certificate. Add your internal CA to the trust store your runtime uses rather than disabling verification:
| Runtime | What happens to events |
|---|---|
| Java | Retried. If NXTONE_SPOOL_DIR is set, batches that exhaust their retries are written there; spooling is off by default. |
| Python | Written to a nxtone/ directory under the system temp directory when memory is full or sends fail. |
| Node.js | Held in memory only; there is no spool. |
There are no separate NxtOne logs to find — the SDK writes to your application's stderr. Collect them from the failing environment:
| Environment | How to collect |
|---|---|
| Docker | docker compose logs <your-service> > nxtone.log |
| Kubernetes | kubectl logs deployment/<your-service> --tail=2000 > nxtone.log |
| Local / CI | ./start-your-app 2> nxtone.log |
On Python, set NXTONE_LOG_LEVEL=debug before reproducing (the default is warn). Debug logging is verbose — turn it back down afterwards.
Open a support ticket from the dashboard with the logs attached. A report that includes the SDK's startup lines, the SDK version from your build file, your runtime and its version, and how the SDK is activated (Spring Boot starter, Nxtone.attach(), decorator, or --import) resolves in a single round trip; one without them usually costs a day asking for exactly those things.