Appearance
Business-flow guard
Symptoms of the business-flow guard, which checks that users take the steps of a multi-step flow in order, not too fast, and use single-use values once.
Normal users get flow.skipped_step
- Cause: the step's
aftersteps did not answer below 400 for that client in this run, or the client has no run. The first step was not called (a bookmarked page, or a mobile app that skips it); the client's identity changed between steps (logged in mid-flow, so the address became a user); the run was forgotten (state_ttl, ormax_identitiesreached); or the requests went to the other node of a pair, since progress is kept per node. - Check: the event's message lists what was done so far; the event's identity shows who the guard followed.
waap_flow_identitiesnearmax_identities, and a risingwaap_flow_state_dropped_total{kind="identity"}, mean runs are being dropped. - Fix: make
aftermatch the real order (several steps are allowed); raisestate_ttlormax_identities; configure an identity source that stays the same across the flow (see Client identity); or use session affinity in a pair. Keepon_violation: loguntil the flow is quiet.
flow.out_of_order after a user goes back
- Cause: a step came again after a step that follows it had completed (for example changing the address after paying). The guard treats the run as moved backwards.
- Fix: if going back is allowed, start the flow at the step users return to, split the flow in two, or add an exception for
flow.out_of_orderon that path.
flow.too_fast for real users
- Cause:
min_gapis longer than a quick user needs (autofill, a saved card), or the gap is measured from the latest of the step'saftersteps rather than from the previous request. - Fix: lower
min_gap. Values under a second catch scripts while letting people through.
A coupon used twice was not caught
- Cause: the value was read from a place other than the one configured (a form field instead of JSON, or another field name); the first use answered 400 or more (failed uses do not count); the request with the first use was refused;
scope: identityand the second use came from another client; the second use came on the other node within about a second of the first; or the used value expired (ttl) or was released by an operator. - Check: the trace of the first request shows the flows module ran on that endpoint. The value must be at the configured location (
json:/coupon_codefor{"coupon_code": ...}). - Fix: correct
value, usescope: globalfor codes meant to be used once by anyone, or raisettl.
A coupon is reported as replayed although it was never used
- Cause: the first attempt answered below 400 although the application rejected it (an error in a 200 body), so it was recorded as used; or two values longer than 256 bytes share their first 256 bytes.
- Fix: have the application answer a failed coupon with a 4xx status, then release the value (
waap api flows forget -app A -flow F -value V).
The configuration is refused
- Symptom: saving the flows is refused with one of these messages:
steps: 2 to 16 stepsorat most 32 flowsorat most 4 values: the bounds of a flow.is a step of more than 4 flows: one endpoint is used by too many flows.after: "x" comes later in the list: list the steps in an order where each follows the steps it needs. This also rules out cycles.the endpoint of step ... has no {id} in its path: apath:value must name a{variable}of that step's endpoint.
- Cause: the flow breaks one of these bounds or refers to a step incorrectly, as the message says.
- Check: the message names the flow and the step.
- Fix: correct the flow to fit the bound or the order shown above.
No flow suggestions appear
- Cause:
learning.enabledis off; fewer thanlearning.min_identitiesclients reached the endpoint; more than 0.1% of the arrivals did not follow the order; the order is already in a flow; or the counts are capped (5,000 pairs per application, day and node; seewaap_flow_state_dropped_total{kind="transition"}). - Fix: turn learning on and wait for traffic. Lower
min_identitiesfor small sites.
"Suggestion is no longer offered" when approving
- Cause: the counts or the flows changed between listing and approving (another approval, or more traffic).
- Fix: reload the suggestions and choose again.
Suggestions stay empty
- Cause:
flows.learning.enabledis off; fewer thanflows.learning.min_identitiesclients reached the step; or 99.9% of them did not follow the same order; or the process holds no flow store (503). - Check:
waap api flows suggestions -app Aprints the reason.
Releasing a once value says "not found"
- Cause: the value or client identity differs from what the client sent (the hash covers both, and the flow name); the value expired; or the flow has no once values (422).
- Check: the replay event's identity;
waap api flows statusshows the values in use. - Fix: repeat the command with
-identityfor values used once per client.