> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.6mm.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.6mm.com/_mcp/server.

# Troubleshooting

<h2 id="trading-widget-issues">
  Trading Widget issues
</h2>

| Symptom                              | Likely cause                                | Fix                                                         |
| ------------------------------------ | ------------------------------------------- | ----------------------------------------------------------- |
| iframe requests partner local domain | baseUrl is missing                          | Pass baseUrl: '[https://app.6mm.com](https://app.6mm.com)'. |
| iframe is invisible or very short    | Parent container has no height              | Set container height or pass height.                        |
| token\_provider\_missing             | partner-token mode has no provider          | Add auth.tokenProvider.                                     |
| auth\_exchange\_failed               | Invalid, expired, or mismatched embed token | Check backend token response and channelId.                 |

<h2 id="agent-sdk-issues">
  Agent SDK issues
</h2>

| Symptom                          | Likely cause                                                 | Fix                                                   |
| -------------------------------- | ------------------------------------------------------------ | ----------------------------------------------------- |
| Signature rejected               | Wrong secret, clock drift, or manually changed signed fields | Let SDK generate signing fields and sync server time. |
| Duplicate funds movement risk    | New order number used after timeout                          | Query by original agentOrderNo first.                 |
| PROCESSING treated as failure    | Pending state misunderstood                                  | Wait for webhook or call queryOrder.                  |
| Webhook processed multiple times | Retry behavior without idempotency                           | Add idempotency key and final-state checks.           |