Common Issues & Fixes

Find your symptom below for the likely cause and the fix. Most problems are a blueprint that was never saved, an API that was never activated, or a cached result that went stale.

For the technique of tracing a flow yourself, see Debugging Blueprints.

Blueprint not saving or changes lost

Symptom: Your changes seem to disappear, or other users never see them.

Likely cause: The changes were never saved, or the blueprint is not active. On a current core there is no separate deploy step, so there are two states to check:

State What it means
Unsaved Your edits are on the canvas, and other developers can see them. Visitors cannot. On a state page, ?staging previews them; closing without saving keeps nothing you did not save. A web page always runs the saved blueprint.
Saved Clicking save your changes (or Cmd/Ctrl + S) publishes the blueprint: an active blueprint now runs it for everyone. See How to Deploy, also for cores from version 14 and earlier, which deploy separately.

Fix:

  • Save the blueprint with the save your changes button before leaving it.
  • If it is saved and users still see the old behavior, check that the blueprint is active, then look for a cached query or a cached page.
  • Removed blocks also only disappear permanently once the blueprint is saved.
save staging indicator
Blueprint top bar showing the save button and staging indicator
Blueprint top bar showing the save button and staging indicator

Read more in Staging and saving a blueprint.

API not activating, or 404 or 401 after activation

Symptom: A newly created API endpoint returns 404, or calls return 401 even though the blueprint looks correct.

Likely cause: The blueprint was never activated, or the caller does not satisfy the endpoint's scopes.

  • All elements in a blueprint (pages, APIs, modals and events) are inactive by default and only start listening after you press the Activate button in the top bar.

Fix for 404: Save the blueprint and press Activate.

Fix for 401/403: Check the endpoint's scopes via its lock icon:

  • Open lock icon. The endpoint uses the *public scope and is accessible to everyone.
  • Closed lock icon. The endpoint is private. With *loggedin, only authenticated users get through; with a custom scope, the user's account must hold that scope. Unauthenticated API calls fail, and restricted pages redirect to /403.

Also verify the request carries a valid access_token. See Adding tokens to your requests.

api activation scopes
API block with its lock icon and the Activate button in the blueprint top bar
API block with its lock icon and the Activate button in the blueprint top bar

Full details in Remote Access Control.

Page or UI not updating

Symptom: After creating or updating a document, the page still shows the old data.

Likely cause: The answer left the page alone, or one of three forms of staleness:

  • A web action with no update. A web_action that runs no update block answers an empty list, and the page stays as it is.
  • Search indexing delay. Search queries do not wait for the latest inserts to be indexed, so a freshly created document can be missing from results for a short while.
  • Stale Redis cache. The flow serves cached data that was never invalidated after the write.
  • Denormalized copies not synced: data embedded in other documents was not updated when the source document changed.

Fix:

  • End the action in web_replace or web_update, and give the element it targets a data-key or id.
  • When real-time accuracy matters, add the disable cache query block so the core waits for pending inserts before searching. Use it sparingly: on high-insert storages it can slow queries down noticeably.
  • Invalidate or refresh Redis keys from a storage event whenever the underlying documents change.
  • Use storage events to propagate source-document changes to every document that embeds that data.

Background in Real-Time Search Results and Common Pitfalls.

A web page answers 500, or an action does nothing

A visitor reads that a page failed; why it failed is shown only to accounts that may view blueprints. Sign in as a developer to see the detail.

SymptomLikely causeFix
500: this page's flow does not reach a web render blockThe flow ended without web_render, web_redirect or an httpconnection reply, often on a branch you did not test.Make every path of the page flow end in one of those.
500 that names a template errorThe template does not compile. Common causes: a {{> partial}} inside a tag or attribute; an {{if}} whose branches end in different HTML places; a URL scheme that comes from data.Open and close tags inside each branch, and write https://{{host}}. See Template Syntax.
A button or form does nothingNo web_action with that name in the page's blueprint, or the action ran no update block.Match its event field to the data-action name, and answer with an update block.
Page opens, but its action is refused for some visitorsAn action without its own scopes requires the scopes of every web_page in the blueprint.Give the action the scopes it needs, for example *public.
Script in an action's answer does not runHTML an action returns is inserted as markup only.Use data attributes, or a script the page already loads.

Performance issues

Symptom: Pages or APIs respond slowly, especially under load, or the cluster shows high memory usage.

Likely cause: The usual suspects are missing cache, expensive aggregations, and heavy work running inside the request flow:

Cause Why it hurts Fix
No caching A single search is cheap, but 300 simultaneous page visits run it 300 times per minute. Cache frequent search results in Redis with a TTL; invalidate through storage events. See Caching with Redis.
Aggregation queries on busy storages Aggregations on heavily populated storages degrade performance and consume excessive memory. Store counters on the document itself and increment them, or precompute statistics in Redis via repeating events. See aggregation pitfalls.
Heavy work inline PDF generation, email sending, or batch processing blocks the request until it finishes. Offload to the queue with function_custom_execute_from_queue so work runs in the background.

Connection problems (cluster URL, 401s)

Symptom: API calls never reach your application, or every call returns 401 even though a token is being sent.

Likely cause:

  • Wrong URL: requests go to RUAL Studio (rual.at) instead of your own cluster URL. Studio is the management application; your cluster serves its own APIs and pages on its own URL.
  • Expired token: tokens are valid for 14 days by default and only extend automatically while actively used. An idle token eventually stops working.
  • Token sent the wrong way. The token is not in a place the cluster reads.

Fix: Confirm you are calling your cluster URL, obtain a fresh access_token by logging in through the authentication APIs, and send it in one of the accepted ways: Authorization: Bearer header, x-authtoken or x-token header, an access_token cookie, or the ?access_token= query parameter. See Authentication and Token Expiry.

Still stuck?

  • Check the audit log. Every blueprint modification is logged automatically. Open it via the blueprint's Options menu to see whether an unexpected change explains the behavior. See Audit log navigation.
  • Debug the flow step by step. Use simulation mode and the console as described in Debugging Blueprints.
  • Contact support: reach out via rual.nl/support.
audit log overview
Audit log listing recent blueprint modifications with timestamps and authors
Audit log listing recent blueprint modifications with timestamps and authors

Frequently asked

Why does my RUAL API return 404 after I activated it?

An endpoint that still returns 404 after scoping usually was never activated. Press Activate: saving already publishes it.

Why is my RUAL page showing stale data?

Either an action did not answer with the update, or a cached query is still serving the previous result. Check that the action ends in web_replace or web_update, and check the cache key on the search that feeds the page.