Skip to content

Common failures and how to fix them

Who this is for: anyone whose workflow will not activate, fails in a run, or does not start.

Before you start: note the error code. The app shows it under the message as Error code:, and a failed step’s error ends with the code in square brackets.

Each section below starts with what you see, then explains the cause and the fix. Your AI assistant can help with most of them: ask it to explain the failed run. It calls get_incident, which names the failing step, the last HTTP call and the likely cause.

What you see: the workflow will not activate, and the checklist on the Overview tab says Some secrets are missing. Or a run fails and the step’s error ends with [secret_missing]. The codes are secret_missing, secret_requested and secret_expired.

Why: a script or a connection names a secret that has no value. Either nobody created it, it was requested but not filled in yet, it expired, or it was deleted.

How to fix:

  1. Open Secrets. Secrets that are waiting for a value are listed first.
  2. Select Add the value and paste it. For an expired secret, select Rotate and paste the new value.
  3. If the secret is not listed at all, check the name the workflow uses. Names must match exactly, for example visma_api. Add it with Add a secret, or ask your AI assistant to request it.
  4. Go back to the workflow. The checklist item turns to Done. For a failed run, select Retry from this step.

See Add a secret and Rotate and expire secrets.

What you see: activation is refused with tests_failed or tests_not_run. The Tests tab shows cases marked Failed or Can’t run, or the message Some required test cases are missing.

Why: Liitora only activates a version whose tests all pass on that exact version, with the required kinds of cases present:

  • a happy path, always;
  • an upstream failure, when the workflow calls another system;
  • an empty or no-op case, when a step has an if: or a script can skip;
  • a malformed payload, when a webhook starts the workflow.

A case also fails when its made-up data looks like a real password or key.

How to fix:

  1. Open the workflow’s Tests tab. Each check is a sentence with Expected and Actual values.
  2. Decide what is wrong: the workflow (it does not do what the case says) or the case (it expects the wrong thing).
  3. Ask your AI assistant to fix it, for example “The test Sends email to IT fails: fix the workflow”. Every save creates a new version and runs the tests again.
  4. For a missing kind, ask the assistant to add that case.
  5. For a credential problem, replace the value with an obvious dummy such as <test-dummy>.

See Read and write workflow tests.

What you see: your AI assistant says the workflow is waiting for approval, and shows an Approve & activate link. Or activation is refused with approval_required. The checklist says A person must approve this version.

Why: by default a person approves each version before it runs in production. AI assistants never approve. The approver needs the Approve workflows permission (admins). You may approve what your assistant made for you. A version you wrote yourself needs another admin (author_cannot_approve), unless you are the only admin and confirm it.

How to fix:

  1. Open the Approve & activate link, or the workflow and Approve and activate.
  2. Check What it does, What changed and What the tests check.
  3. Select Approve this version, then Activate.
  4. If the buttons are disabled, the page says why, for example “You wrote this version, so someone else needs to approve it.” Ask a colleague with the Approve workflows permission.

See Approve a workflow.

A test run stops before it reaches the other system

Section titled “A test run stops before it reaches the other system”

What you see: a test run of a new version fails at once with connection_not_approved, secret_not_approved, host_not_declared or email_not_approved. The run’s logs show no call to the other system.

Why: until a person approves a version, its runs may only use the connections, secrets and hosts that the last approved version of the workflow uses, and send no email. This keeps an unreviewed change away from your systems. Saving another version doesn’t help, because a new version needs approval too.

How to fix:

  1. Check the version first: its tests run on every save without touching your systems.
  2. Ask a colleague with the Approve workflows permission to approve the version. Your AI assistant shows the Approve & activate link when you ask it to explain the failed run.
  3. Run the test again after the approval.

What you see: a step fails with host_not_declared and the message “This workflow can only reach the hosts of the connections it declares. The host X isn’t one of them.” Nothing was sent to that host.

Why: a workflow sends requests with a full address (ctx.http.fetch, or http.request and webhook.send with a url) only to the hosts of its connections. This is true for every run, also after approval and in production, so a workflow can’t send your data anywhere nobody approved.

How to fix:

  1. If the host belongs to a system you already have a connection for, add it to that connection under Other hosts it may call, and list the connection in the workflow.
  2. For a public site that needs no sign-in, create a connection with No sign-in for it and list it in the step. See Reach a public site without sign-in.
  3. Save the workflow as a new version and have it approved.

What you see: a step fails with http_blocked and the message “This address points to a private network, which Liitora can’t reach.” You see the same message from Test connection, a file connection, an alert channel or an email sender whose server is private. The message never shows the address the name resolved to.

Why: Liitora only connects to public internet addresses. This applies to every connection it makes for you: HTTP calls, sign-in with OAuth, file connections (SFTP and S3), alert channels, Microsoft 365 mail and your own SMTP server. It refuses:

  • private and internal addresses, such as 10.x.x.x, 172.16.x.x to 172.31.x.x, 192.168.x.x, 127.0.0.1 and ::1;
  • link-local and cloud metadata addresses such as 169.254.169.254;
  • names that only exist inside a network: localhost, names ending in .local, .internal, .lan, .corp, .home.arpa, .svc or .cluster.local, and names without a dot such as erp;
  • IP addresses written in unusual forms, such as 2130706433 or 0x7f.1, and IPv6 forms that hide an IPv4 address, such as ::ffff:10.0.0.1;
  • a public name that points to any of these (every address the name resolves to is checked, and Liitora connects only to the address it checked);
  • plain http://, addresses with a user name or password, and redirects to another host.

For a server field that is not a web address (an SMTP or SFTP server), type a host name such as smtp.example.com or a public IP address in the usual dotted form with four numbers.

This protects your network and ours. There is no setting that turns it off.

How to fix:

  1. Use the system’s public HTTPS address, for example through the API gateway or reverse proxy you already use for partners.
  2. On the gateway, allow only the paths the workflow needs, and require the API key or sign-in the connection sends.
  3. If a step calls a full address on another host of the same system (for example a download link the API returns), add that host under Other hosts it may call on the connection. Redirects to another host are never followed: call the final address instead.
  4. If the system is only reachable inside your network, Liitora cannot reach it yet.

What you see: a step fails with http_status and “The server answered with status 401”. The step’s HTTP calls show 401 (or 403). The connection shows Failing and the hint “The system refused the sign-in”. For OAuth 2 connections the code can be auth_failed.

Why: the other system did not accept the credentials. Common causes: the key or password was changed or revoked on their side, the secret holds the wrong value (for example a space at the end), the key is sent in the wrong header or with the wrong prefix, or the account lacks rights for this call (403).

How to fix:

  1. Open Connections and select Test connection on the connection. It sends one GET request with the sign-in applied.
  2. Check the sign-in settings: for an API key, Header or parameter name, Send the key in and Prefix before the key must match what the other system expects.
  3. Get a fresh key or password from the other system. On Secrets, select Rotate on the secret and paste it.
  4. For OAuth 2 (authorization code), select Reconnect and sign in again.
  5. Test again. When it says It works, go to the failed run and select Retry from this step.

See Test a connection.

What you see: the connection’s card on Connections says Runs are waiting for this connection. Runs that use it show connection_waiting in their log and wait in the queue. Your admins got a connection_degraded alert.

Why: calls through the connection failed again and again: at least 5 failures, and at least half of the calls, within 5 minutes. A failure is an answer with status 500 or higher, a 429 (too many requests), or no answer at all. Answers like 401, 403 or 404 do not count, because they show that the system is up. Instead of sending more calls to a system that is down, Liitora pauses the runs that use the connection. This works per connection: other connections and other companies are not affected.

What happens next: after 30 seconds one run checks whether the connection works again by making its call. If the call works, every waiting run continues from its last finished step. If not, the next check waits twice as long, up to 10 minutes. Waiting does not use up a run’s attempts. A run that has waited more than 24 hours fails with connection_degraded.

How to fix:

  1. Check whether the other system is down or overloaded, for example on its status page.
  2. Open Connections and select Test connection. A test does not wait and does not count towards the check.
  3. Fix what is wrong on the other system’s side, or the connection’s address. The waiting runs continue by themselves after the next check.
  4. If a run failed after 24 hours, start it again once the connection works.

What you see: a run’s log says the connection is at its shared request limit or has used its daily request limit, or that the system asked Liitora to wait. The run shows rate_budget_wait and waits in the queue. The connection’s card shows Calls today or The system asked Liitora to wait.

Why: the connection has a shared request limit, and the runs that use it reached it together. Or the other system answered 429 (too many requests) or 503 with a Retry-After time, so every run that uses the connection waits until then, for at most 24 hours. Calls wait their turn instead of failing.

What happens next: a run that waits up to 30 seconds stays in its step. A run that waits longer continues by itself from its last finished step: after the pause the system asked for, after midnight UTC for a daily limit, or within a minute for a per-second limit. Waiting does not use up an attempt.

How to fix:

  1. Nothing, if the runs can wait. They continue by themselves.
  2. If the other system allows more calls than you set, raise Calls per second or Calls per day under Edit on the connection. See Set a shared request limit.
  3. If the daily limit runs out often, make fewer calls, for example by fetching more items per call, or by running a schedule less often.
  4. If a step times out while it waits, give the step a longer timeout or lower the number of runs that use the connection at the same time.

What you see: an alert quota_exceeded says your company reached its monthly run limit. Production runs stop starting. Earlier you may have seen quota_warning at 80% and 100% of the soft limit.

Why: each plan has a monthly limit of production runs (test runs and dry runs do not count). The month is a calendar month in UTC. When the limit is reached, no new production run starts: scheduled and chained runs are skipped and not made up later, Run now and the API answer run_limit_reached, and webhook senders get 429 quota_exceeded so they can retry later.

How to fix:

  1. Find what uses the most runs. A schedule such as every 5 minutes makes about 8 600 runs a month.
  2. Make frequent schedules less frequent, or add calendar: { skip_on: [weekends] } to skip days nobody needs. See Use calendars and holidays.
  3. Runs start again on the first day of the next month (UTC), or right away when an admin changes the plan.
  4. If you need a higher limit, ask for a plan change. Use Report a problem in the user menu (top right) in the app.

See Understand usage and limits and Limits per plan.

What you see: the sender gets 401 with {"error":{"code":"unauthorized","message":"The webhook was not accepted. Check the URL and how the request is signed."}}, and nothing appears under Recent events.

Why: Liitora gives the same answer for every refusal, so nobody can probe your webhooks. The cause is one of these:

  • the URL is wrong or incomplete, or the webhook was deleted, or it is paused;
  • the sender’s address is not in the webhook’s allowed sender addresses;
  • the signature is missing or wrong: a wrong secret, a secret rotated more than the grace period ago, or a body that changed after it was signed;
  • the timestamp is more than 300 seconds off, often because the sender’s clock is wrong or the timestamp is in milliseconds;
  • a Stripe webhook whose secret nobody pasted yet;
  • Liitora blocked the webhook because it was abused (its panel says so, with the reason).

How to fix:

  1. Open Webhooks and select the webhook. Check that it is on (not Paused) and that the sender uses exactly its URL (Copy the URL).
  2. Run the script from Send a test event. If it gets 202, the webhook works and the problem is in the sender.
  3. Compare the sender’s code with Webhook signing. The page has a test value: with the secret example-signing-secret, a correct implementation gets the signature shown there.
  4. Sign the raw body bytes exactly as sent. Frameworks that parse and re-encode JSON change the bytes.
  5. Send the timestamp in whole seconds, and check the sender’s clock.
  6. If you rotated the secret, update the sender. See Rotate webhook secrets.

If the sender keeps sending refused requests, after 60 in a minute it gets 429 rate_limited instead of 401 until the minute has passed. Fix the cause above, and the answers go back to normal.

A request is refused with 403 and no error code

Section titled “A request is refused with 403 and no error code”

What you see: a request to Liitora (the app, the API, the MCP server or a webhook URL) gets 403 without Liitora’s usual {"error": ...} answer. Your AI assistant may say the tool call was forbidden.

Why: every request passes a web application firewall before it reaches Liitora. It refuses requests that look like an attack, for example text shaped like a database or shell command in a place where it does not belong. It also refuses HTTP methods and content types Liitora does not use. Now and then a normal request looks like an attack, for example a script with unusual text in it.

How to fix:

  1. Try again once. If it passes, nothing more is needed.
  2. If a webhook sender gets it, check that it sends a common content type, such as application/json, a form or text/plain.
  3. If it keeps happening, use Report a problem in the user menu (top right) in the app. Say what you did, when (with your time zone), and which address you called. Don’t include passwords or other secrets. We check the firewall’s log and allow the request if it is normal use.