Troubleshooting Common Issues
Use this article to diagnose common setup, review, API, and webhook problems.
Stacksona Support
Last Update één dag geleden
Agent receives 401 UnauthorizedPossible causes:
- Missing API key.
- Incorrect Bearer token format.
- Wrong API key.
- Key was regenerated and the agent still uses the old one.
- Confirm the header is Authorization: Bearer sg_your_api_key.
- Regenerate the key in Admin → Agents if needed.
- Update the agent’s secret store or environment variables.
- Agent is paused or inactive.
- Polling or API access is disabled.
- Tenant or feature settings prevent the action.
- Check the agent status in Admin → Agents.
- Confirm API access settings.
- Contact an admin if feature limits or license settings are involved.
- Reviewer has not decided yet.
- Agent is polling the wrong thread_id or task_id.
- Webhook was configured but the agent does not poll as fallback.
- Open the inbox and confirm the thread is visible.
- Confirm the agent saved the returned thread_id.
- Poll GET /api/agent/decisions using the correct identifier.
- Ask a reviewer to approve or reject the request.
- Webhook URL is incorrect.
- Receiver is offline.
- Receiver does not return a 2xx response.
- Network or firewall blocks the request.
- Verify the webhook URL in Admin → Agents.
- Check receiver logs.
- Check Stacksona Gate webhook logs.
- Use polling as a fallback.
- Agent did not log task events.
- Summary is too vague.
- Payload does not include useful fields.
- Attachments or evidence are missing.
- Log important events before requesting a decision.
- Include a concise but specific summary.
- Include structured payload fields.
- Attach relevant images or evidence when supported.
- Payload parameter name does not match the rule.
- Value type is unexpected.
- Rule threshold or pattern is incorrect.
- Tool name does not match the registered tool.
- Confirm the agent’s tool_name.
- Confirm payload keys such as amount, email, or reason.
- Review the rule type and threshold.
- Test with a known payload.
