Skip to content

Errors

See what your app threw, on the server and in the browser, grouped by fault.

View as Markdown

Errors, in a project's sidebar, lists what your app threw, grouped by fault: what broke, where, how often, on which deployment, and the stack read against the code you wrote. Both sides of a deployment are collected — what the server threw while rendering, and what a page threw in somebody's browser.

This automatic error collection is for Next.js deployments. Native Worker and other framework builds do not use the Next.js instrumentation described here.

Nothing to set up

There is no package to install, no provider to render, no key to configure. Arkor collects errors from the deployment it built; the next deployment you publish reports them.

Your own instrumentation.ts keeps working exactly as it did. Arkor runs its own hook first and yours after, so a project that already reports errors somewhere else goes on doing that too.

A deployment published before this existed reports nothing. Deploy again — push to your production branch, or choose Deploy latest on Deployments — and errors appear as they happen. Nothing is sent from next dev.

What is collected

On the server, every error Next.js reports as uncaught: while rendering an App Router or Pages Router page, in a Route Handler, in a Server Action, and in proxy.ts. The Ran as field on an issue says which it was.

In the browser, uncaught errors and unhandled promise rejections. A small module runs before React hydrates, so an error thrown while the page is still coming up is reported too. It sends the error's type, message, stack and the path the page was on. No cookie is set and no storage is used. The collector derives browser, OS, device and available version details from headers already sent with the error report, alongside the country. It does not request extra browser hints or probe the device. Raw user-agent headers and IP addresses are not retained.

A deployment built with Next.js 16.2 reports the server side only, as 16.2 cannot load that module before hydration. See Next.js 16.2.

An error your own code catches is not collected: there is no captureException() in this version. Sessions and a count of people affected are not collected.

Read the list

Open Errors in the project's sidebar.

  • Period: Last 24 hours, Last 7 days or Last 30 days.
  • Where: Server, Browser, or Edge runtime for an entrypoint built for Next.js's edge runtime.
  • Deployment: Production, Previews, or both.
  • Status: unresolved issues by default, or resolved, ignored, or all issues.
  • Sort: most recently seen, most occurrences, or most recently first seen in the selected period.

Each row is one issue, with its status, how many errors it accounts for, and when it was first and last seen in the selected period. Errors counts occurrences; Issues counts distinct faults. These are counts for the selected period and filters, rather than lifetime counts.

Search matches the displayed, secret-masked error type, message, culprit, route, issue ID, and deployment ID. It is a case-insensitive substring search of up to 200 characters. Each search step checks a bounded set of issues and shows up to 50 matches. Choose Continue search to check more; an empty step with that option does not mean the whole period has no matches. The totals above the list are before text search, so they do not claim to count all search matches.

The list's filters, search, and sort are part of its URL. Opening an issue and returning to the list keeps those conditions. Changing them starts at the beginning of the results.

Grouping is by the fault, not by the text: the error's type, the route it happened on, and the top frames of its stack. So the same fault stays one issue across deployments, even though every line number moved and every client chunk was renamed. A browser error the browser will not describe — a cross-origin Script error. with no stack — is grouped by its message with the parts that vary in every occurrence, like ids and durations, taken out.

Read an issue

Choose an issue to see its most recent occurrence: the message, the stack, the request it came from, and which deployments it has been seen on.

The timeline shows estimated occurrences across the selected period and filters: hourly for 24 hours, every six hours for seven days, and daily for 30 days. Boundary bars can cover a partial interval. A successful empty interval is zero; a failed read is unavailable. The graph loads independently, so it does not prevent reading a recorded stack.

Choose a bar to fill the start and end fields, or enter any start and end to the second, then apply the range. Inputs follow your dashboard time zone, including an account-selected zone that differs from your browser's. A local time skipped by a clock change is rejected. If the same local time occurs twice, choose its UTC offset. The ending instant is excluded.

The graph and issue overview keep the full period visible. Additional statistics, the deployment breakdown, and the most recent 20 records follow the selected interval. An interval without records keeps the issue open with zero selected occurrences. Clear it to return to the full period. The interval and fixed graph time are kept in the URL; changing period, source, or environment clears the interval and occurrence selection.

Publication markers show retained production publication records and the first recorded publication of preview releases, including releases without errors in the selected period. Repeated production publications remain separate. Configuration rollback records are not labeled as code deployments. Missing publication timestamps are not inferred from build creation or later updates. Candidate history and visible markers are bounded; the page says when either is incomplete. The publication list and numeric table provide the same context without relying on hover.

Counts are weighted sampling estimates, not error rates. The overview, graph, and selected interval are separate queries, so their estimates can differ. Missing records or publication markers do not prove that no occurrence or publication happened.

The occurrence selector lets you inspect up to 20 most recent recorded occurrences, identified by time, environment, deployment, and path. Only the selected occurrence's stack and sources are read. The request details also show the hostname and the report collector's Cloudflare location where recorded. That location is not the physical machine running your application. Frames can be expanded individually; the first frame with a source excerpt is open initially.

An occurrence link refers to the current recent records. If that occurrence has left the recent 20, or no longer matches the selected period and filters, the page says so and offers the latest occurrence. It does not silently substitute another event. Sampling can omit occurrences, so this selector is not a complete event history.

Causes and Breadcrumbs

New deployments report the available Error.cause chain on both the server and in the browser. Caused by lists up to five causes, from the immediate cause to the deepest retained one. Open a cause to inspect its own stack, resolved against that occurrence's deployment. Circular chains, unreadable causes and size limits are reported explicitly. The deepest retained cause is not a guaranteed root cause: a framework can replace an error before reporting it. Arbitrary cause objects are not inspected, and AggregateError.errors trees are not expanded.

Browser reports also include Breadcrumbs: recent recorded activity before the error, oldest first, with time measured relative to error capture rather than the report's arrival time:

  • The initial pathname and App Router navigation starts.
  • Completed same-origin fetch and XHR requests: pathname, duration and HTTP status when available. This passive observation does not replace fetch or XHR. Methods are unavailable, and failures, aborted or unfinished requests may be absent. Missing status is not labeled as a failed request.
  • Clicks: the element's kind, role and input type, without text, values, IDs or selectors.
  • Console debug, log, info, warn and error: bounded primitive arguments. Objects are represented by placeholders, and long strings or additional arguments are omitted.

The browser keeps up to 20 entries in memory and sends the snapshot only with an error. It sets no cookie, writes no browser storage and sends no independent activity stream. Query strings, fragments and URL credentials are removed from navigation and HTTP paths; request headers and bodies are not inspected. Console strings can contain whatever an application logged, so avoid logging private user data. Displayed strings use the occurrence's deployment-secret masking.

Collection and storage limits can leave fewer entries or cause frames; the page says when details were omitted. Unsupported browser APIs reduce the available history. Browser breadcrumbs are not server request history. Old deployments and previously collected occurrences have no added diagnostics; deploy again to collect them. An empty supported snapshot is shown separately from information that was never recorded.

Contexts

Contexts describes the selected occurrence. Client shows the recorded browser, OS and device class, with version details when available. Browser versions distinguish Major version only from Reported by browser; a reported value can still be reduced or changed by the browser. Version details are available for newly collected reports, not added retrospectively to old ones.

Deployment runtime shows verified metadata from that occurrence's own retained deployment: platform, framework and version, and Workers compatibility date and flags when known. For a browser error, this describes the deployment serving the page. Compatibility settings are not an engine version. Containers do not inherit the Workers gateway's framework or compatibility settings. Deployment shows the occurrence's environment and deployment ID, plus its build ID and commit SHA when available. A deployment ID links to its build details.

Unavailable fields are omitted, including metadata from deleted deployments or an earlier project owner. Older reports keep their recorded browser, OS and device classification. The page does not substitute the project's newest deployment, guess a server OS or expose a physical machine name. Context metadata is read during investigation; it adds no request to serving your site's pages and requires no SDK change.

The stack is read against the source maps of the deployment that threw, so a frame in your own code names the file you wrote and the line you wrote it on. A frame no map covers is shown as it was built and marked as built, and when no frame of the stack could be placed, a line above it says why — which is better than a stack with holes in it.

On the server, that includes every frame inside a package or inside Next.js itself: Arkor keeps the server's map to your project's own files, which are what a stack is read for, and which keeps the map small enough to read for any issue. In the browser, a frame inside a package names the package's file.

Your source maps are never served to visitors. Arkor keeps them with the deployment and reads them only here, when you open an issue.

Newly built deployments also keep private copies of the available original sources. Each mapped frame shows the error line and up to two lines on either side, with the deployment's secret values masked. Older deployments and sources that were unavailable, too large, or have ambiguous line numbering still show the original file and position without a code excerpt. Source text is read only when you open an issue; serving your site's requests does not read it.

If your project uploads its source maps to Sentry or PostHog, nothing changes for it. Their Next.js plugins delete the maps from the build once they have uploaded them; Arkor reads the maps before that and changes nothing about what is uploaded. An older deployment whose maps stop at the build's own output says so above its stacks — deploy again, and the errors of the new deployment read as you wrote them.

Every string shown is masked with that deployment's own secret values first, as build and runtime logs already are: an error message is exactly where a connection string ends up.

Resolve and ignore

Resolve an issue you have fixed and Ignore one you have decided to live with; Reopen clears either decision and puts the issue back to Unresolved.

If a recorded occurrence is newer than the most recent Resolve decision, the issue appears as Unresolved with a Regressed label. Resolving it again sets a new resolution time. An ignored issue stays ignored when more occurrences arrive, until you reopen it or change its status.

Recurrence is checked across all environments and sources in the last 30 days, within the current project owner's history. It does not depend on the period, source, or environment filters you are viewing; the counts and occurrence details still follow those filters. The selected occurrence may predate the recurrence. The label is calculated when the dashboard reads the recorded data, rather than being a permanently saved reopening. It can disappear when the evidence leaves that 30-day window.

Sampling can omit occurrences, and minute-based query windows and cached reads can delay a change. An occurrence in the same timestamp second as Resolve may not be distinguishable as later. The absence of a Regressed label does not prove the fault has stopped happening.

You can also change an issue from its row or select several rows and apply one decision together. Select all applies to the currently displayed page, up to 50 issues. A bulk change is saved together; if it fails, the selection stays available to retry.

Notifications

Open Settings → Notifications to send issue and frequency alerts to Slack Incoming Webhooks or signed JSON webhooks. A project can have up to five destinations. Owners and administrators can change destinations and rules, rotate signing secrets, and send synthetic tests; members can view settings, detection status and delivery history.

Choose production, previews, or both for each destination. This environment selection allows both notification families: clearing both environments pauses all delivery to that destination. The issue-type checkboxes separately select newly observed issues, regressed issues, or both. Both types remain selected for older records. Clear both issue types to use a destination only for frequency alerts, while keeping the required environment selected.

Newly observed and regressed issues

Only these issue notifications first read a quiet 30-day baseline in each environment. After initialization, detection runs every five minutes and groups notifications by destination and environment. A batch includes masked type/message summaries for up to ten issues, total issue counts, and links back to the observed time window. “New” means newly observed by notifications in that environment: an issue seen in previews can still be new in production. Ignored issues do not notify. A regression needs a retained resolution decision and a recorded occurrence in a later second. Subsequent triage does not retract an already queued notification.

Sampling, delayed records and scan limits make detection best effort. A gap over 24 hours causes a quiet baseline rebuild instead of replaying old issue notifications. Pausing every destination with selected issue types for an environment also requires quiet initialization on resume. These baseline rules do not apply to frequency alerts.

Frequency alerts

Add a rule in the independent Frequency alerts panel. A project can have up to five rules. Each rule selects one environment and existing destinations, and fires when an individual issue's estimated count is strictly greater than N in a fixed five-minute window. N is a positive integer, initially 100. For example, 100 does not fire a threshold of 100; 101 does.

Windows use UTC and exclude their ending instant. Evaluation waits five minutes after the end to allow records to arrive: the window from 00:00 through 00:05 is first eligible at 00:10. A new rule waits for a complete window after activation; it does not read a 30-day baseline. Counts are sampling estimates, not affected people or request error rates. Filters on the Errors list and detail do not alter a saved rule.

New rules are saved paused. Review their destinations, then enable them. A destination must allow the rule's environment. For each signed JSON destination, explicitly accept frequency alert JSON payload version 2 on that rule's route. Existing issue notifications remain version 1; a receiver opting in may receive both versions at the same URL. Slack does not need JSON consent.

Repeat choices are every successful evaluation (0), or every 5, 10, 30, 60, 180, 720 or 1440 minutes while the issue remains above the threshold; the initial value is 60. Zero removes repeat throttling; it does not disable repeats. Recovery notifications start enabled. Recovery means a later complete window is at or below the threshold. It does not resolve the issue, and manually resolving or reopening an issue does not clear a frequency incident. An ignored issue is suppressed and its incident closes quietly on the next successful evaluation.

The panel shows warming up, normal, firing, unknown or paused, the last evaluated window, the last attempted window end, and missing windows. Unknown observations and capacity limits are not displayed as zero. Delayed work evaluates the latest eligible window and reports gaps rather than replaying all missed history. An enabled rule with no currently eligible destination shows paused while retaining its incident and observation state. Use Refresh to update the view; there is no polling. If an older API does not support rules, that panel explains this while existing destination settings remain available.

Tests, delivery and signatures

A test works while a destination or rule is paused, without enabling it or changing detection state. A rule test sends one synthetic version 2 batch to every selected destination. Destination and rule tests share one test operation per project per minute; testing five rule destinations is one operation. Rate-limited tests ask you to wait and retry.

Webhook URLs are encrypted and never displayed again. JSON signing secrets are shown once when created or rotated. Both payload versions use X-Arkor-Notification-Signature as v1= followed by the hex HMAC-SHA256 of timestamp.deliveryId.rawBody, using the displayed secret as UTF-8 text, without hex-decoding it. Timestamp and ID come from X-Arkor-Notification-Timestamp and X-Arkor-Notification-Id. Verify the exact request bytes before parsing, reject timestamps outside a five-minute tolerance, and deduplicate accepted delivery IDs. Frequency items identify their incident and threshold/repeat/recovery transition; type and message may be unavailable, including for a zero-count recovery.

Both families share delivery capacity. Native batches include up to ten masked summaries. Frequency alerts split all detected threshold, repeat and recovery transitions into batches of up to ten items each. Normal frequency payloads report omitted: 0; later batches can use fingerprints, counts and links when optional type/message summaries are unavailable. A large set may take multiple scheduled sweeps to publish. Pending-cap backpressure retains the incident and repeat state rather than consuming transitions without queued deliveries.

Delivery makes at most four attempts within 24 hours. The receiver's Retry-After can delay retries by up to one hour. An uncertain response can duplicate a Slack message. Renaming a destination or changing its language preserves pending deliveries. Changing only the issue-type selection preserves frequency deliveries. Changing the URL, format, signing key or global environments, pausing the destination, or deleting it cancels outdated deliveries from both families; a request already in flight may complete.

Shared delivery history keeps up to 1,000 completed records for up to 30 days. Notification configuration and evaluation do not add work to serving your pages, and need no new collection SDK or browser API.

Keeping and counting

Errors are kept for three months. A project throwing a great many of them is sampled, and then what this page shows is an estimate — the same way Web Analytics counts under load. Not only the counts: a fault that threw rarely among a great many others can be missing from the period altogether, and the occurrence shown as the most recent is the most recent one that was kept.

If nothing appears

  • The list opens on unresolved issues. Switch to all statuses to find an issue already resolved or ignored, or clear the current search and filters.
  • Publish a deployment made after this feature existed. One published before it reports nothing, and nothing about it says so on the page.
  • next dev sends nothing. Visit the published site.
  • An error your code catches itself is not an error Next.js reports as uncaught, so it is not collected.
  • A page's report is sent to your own domain. No Content Security Policy blocks the module itself — it is part of your own bundle, not a script Arkor adds to the page — but a connect-src that does not allow your own origin stops the report, and so does an extension or a network that blocks POST /__arkor/monitoring/*.
  • With Access protection on, only visitors who have come through the gate are collected.
  • A page that threw before Arkor's module ran — a script blocked in the document's <head>, for instance — is not collected either.