Skip to content
LakeSharkDocumentation
START HERE / DOCUMENTATION

Troubleshooting

Diagnose AnswerSets, HTTP ExecutionSets, action bindings, providers, and public API requests.

Identify which operation failed before changing configuration: creating an AnswerSet, generating Knowledge, previewing an answer, saving an HTTP ExecutionSet, connecting an action, invoking an external endpoint, or authenticating a client. These are separate operations with different permissions and failure modes.

Provider connection fails

  1. Open Providers → Connected Providers in the intended workspace.
  2. Select Check health. The console tries model discovery first; if the protocol explicitly does not support discovery, it falls back to the connection-test endpoint.
  3. Verify the credential, provider endpoint and model entitlement.
  4. Retest an AnswerSet using a model available to that connection.

A successful model-discovery response does not itself test generation, and a successful connection test does not establish access to every model. If discovery fails with an error, the console does not automatically run the connection-test fallback. Inspect the provider’s status, credential, endpoint and outbound policy. See Connected Providers.

Generated Knowledge is missing, blocked, or inaccurate

Symptom Check
Generate returns 409 or produces no drafts Grounded generation requires eligible approved Knowledge; alternatively select AnswerSet purpose to generate unverified drafts without a grounding reference. Check provider connectivity and review generated drafts before publishing.
Seed appears but is not reused Provider-generated items may still be drafts; review and publish them
Generated answer invents policy Compare against verified sources; edit, reject, or delete the candidate
AI is called too often Approved Knowledge coverage, question matching and runtime metrics
Response has a JSON string inside a JSON field Verify JSON output rules and use typed $ref objects rather than asking the model to output serialized JSON

Generate Knowledge can expand approved grounding material or create unverified purpose-based drafts; the latter is not a source of verified organizational policy. Auto Seed proposes candidates from eligible runtime gaps and has separate policies and limits. Neither should be treated as a substitute for review.

See Knowledge management and JSON templates.

HTTP ExecutionSet cannot be saved

  1. Verify that a workspace is selected and the actor has executions.write.
  2. Use a public DNS hostname over HTTPS on the standard port; no URL credentials, fragment or IP literal.
  3. Check required input and output fields, their JSON types and allowed schema shapes.
  4. For URL query references, use a declared scalar input as the entire parameter value.
  5. For POST body templates, ensure each $ref points to a declared input.

Saving the definition never tests network reachability or grants permission to the external host.

HTTP ExecutionSet saves but cannot run

Symptom Check
Destination rejected by egress policy Check the configured hostname policy and egress-verification gate. The checked-in beta manifest uses LAKESHARK_EXECUTION_HTTP_ALLOWED_HOSTS="*", so individual public hostnames are not rejected merely for lacking per-host approval; verify the running deployment before assuming its settings
Cluster DNS or private address blocked This is expected: internal endpoints and non-public resolved IPs are prohibited
URL redirects Redirects are not followed; target the final approved HTTPS endpoint directly
Response rejected Remote HTTP status, valid JSON response, and matching output schema
Input invalid Required fields, scalar query/path substitutions and typed POST body
Timeout or uncertain outcome Inspect destination logs and run evidence before issuing a new request
Function unavailable Workspace, actor scopes, active/deactivated state and deletion status

See HTTP security and Kubernetes boundaries and HTTP ExecutionSets API.

AnswerSet action is missing or fails

  1. Read the intended AnswerSet’s connections through GET /v1/answer-sets/{id}/execution-bindings. The Flow graph dropdowns do not manage these runtime bindings.
  2. Verify the attached ExecutionSet is in the same workspace and its input fields have valid mappings.
  3. Test the AnswerSet answer without an action. Confirm its type and output policy.
  4. If mapping a JSON field, confirm the path exists in the resolved answer_value; a missing field fails before outbound HTTP.
  5. Verify answers.write and executions.evaluate before an explicit action run.
  6. Confirm the execution egress path is enabled and inspect the effective hostname policy. The checked-in beta manifest permits * (otherwise valid public HTTPS hosts); it does not enforce individual operator hostname approvals. Verify live-cluster configuration separately.

Check the source of action execution. Approved AnswerSet Automatic bindings can be invoked by Question Keys, while standalone Flows have a separate planned key and runtime. Older beta workspaces may still have attached graphs; inspect the recorded runtime evidence rather than assuming a UI preview executed anything. Reuse the same UUID idempotency key for the same logical request and investigate uncertain downstream outcomes before starting a new one. See Flow test modes.

See AnswerSet action walkthrough and action mapping reference.

Existing deterministic-rule ExecutionSet bindings

Older /v1/execution-sets policies and version-pinned preflight bindings use a different API and lifecycle from current HTTP /v1/execution-functions. Do not try to certify or approve an HTTP function using the legacy rule-engine steps.

For a previously deployed rule binding, use the legacy migration instructions and legacy API reference. Unbinding an old policy can change production authorization and must be reviewed first.

Cloudflare edge blocks and geographic access

The checked-in production Cloudflare WAF configuration specifies a zone-wide non-US block, except for a narrowly scoped support billing webhook. This also covers the public API and documentation hostnames. A request geolocated outside the United States may receive a Cloudflare block response before reaching LakeShark authentication or the API Worker.

If you receive 403, distinguish a LakeShark JSON authorization error from a Cloudflare-generated response. Check the hostname, response headers and Cloudflare Ray ID if present; a pre-Worker block need not contain X-LakeShark-Edge. Do not switch to private service origins. See configured geographic access. This is a source-configuration observation, not proof of the currently deployed WAF state.

Authentication and request errors

HTTP status Typical meaning Next action
400 / 422 Invalid request, mapping, contract, or value Compare payload against the endpoint schema
401 Missing, expired, or revoked credential Check credential type; refresh or reissue
403 Missing permission, wrong actor type, or workspace denial Check scopes and workspace
404 Incorrect route or resource outside authorized workspace Verify route, ID and workspace
409 State conflict, reused idempotency key, or unapproved destination Inspect current state and prior action evidence
429 Quota or rate limit Inspect quota status and honor Retry-After
502 / 503 Upstream network/provider or required dependency failure Retry only safe operations with bounded backoff
504 Public API gateway timed out waiting for a backend Check run/action evidence before retrying any potentially side-effecting request

Application Question API traffic uses Question Keys. Management and explicit execution APIs use appropriately scoped bearer access tokens. These credentials are not interchangeable.

Before contacting support

Collect the timestamp, public API route, HTTP status, workspace, affected AnswerSet or ExecutionSet ID, expected and actual behavior, and any available answer/action run ID. Never include bearer tokens, Question Keys, passwords, provider credentials or sensitive request contents.

QuickStart · API errors · Access and RBAC · Provider connections