Przejdź do głównej zawartości

Errors

Qubix records the errors that occur on the pages of your PWA storefront when visitors open them — a script that failed, an icon that did not load, and so on. Collecting these errors helps you spot a broken app before it wastes traffic.

No dedicated screen yet

A separate Errors tab inside the app card — with a list of errors where identical ones are grouped and a repeat counter is shown — is planned but not built yet. For now, the errors are available only through a database query — it is described below. The interface does not show them yet.

Where the errors are stored​

The errors are collected into a single table, pwa_errors. Each row is one error that fired on a storefront page; rows are kept for 90 days. The fields you will need most often:

FieldWhat it holds
typeThe kind of error — for example, a script error or a resource that failed to load.
messageThe error text.
event_timeWhen the error happened.
geoThe visitor's country.
deviceThe visitor's device description.

For a deeper look there are other columns as well: domain (the entry point the visitor came through), piuid (the visitor identifier), ip, ua (the browser string, user-agent), stack (the technical trace of the error) and context (extra details about where it fired).

How to view them​

The easiest way is to ask the built-in AI assistant, whose panel is available on every screen of the admin panel once a model is connected to Qubix. It can run read-only database queries, so a plain request such as "show the errors of this PWA for the last day" returns the list without a single line of query on your side. See AI assistant.

The same read-only query method is also available to an external client over MCP (see MCP/API) and, for an administrator with direct database access, as a regular query. Whichever path you use, you always see only the errors of the apps you are allowed to see: a buyer sees their own apps, an administrator sees all of them.

How to find the app identifier​

The queries below need the app identifier, a value like 01f77c11-ed56-4555-857e-46f380593d5d. The browser's address bar holds the address of the whole desk, not of the app, so the identifier isn't visible there. Look it up by the app's internal name with the same query method:

SQL
SELECT pwa_id, name
FROM pwa_apps FINAL
WHERE name = 'My app'

Example: recent errors of one app​

SQL
SELECT event_time, type, message, geo, device, domain
FROM pwa_errors
WHERE pwa_id = 'APP_ID'
AND event_time > now() - INTERVAL 24 HOUR
ORDER BY event_time DESC

Example: the same errors grouped, with a repeat counter​

This is also how the future tab will look — identical errors brought together, with the number of repeats and the time of the last occurrence:

SQL
SELECT type, message, count() AS hits, max(event_time) AS last_seen
FROM pwa_errors
WHERE pwa_id = 'APP_ID'
AND event_time > now() - INTERVAL 7 DAY
GROUP BY type, message
ORDER BY hits DESC

What's next​