2.4 KiB
2.4 KiB
Troubleshooting
Use this reference when live extraction or documentation quality checks fail.
Browser and session
- Browser-harness daemon may persist across commands. Always set
BU_CDP_URLin the same command asbrowser-harness. - Clear stale daemons before a new task.
- Use an isolated Chrome profile and port. Never attach to the user's daily browser.
- If headless screenshots are blank, wait and capture again.
- CloakBrowser-style Playwright wrappers may not expose the CDP endpoint expected by browser-harness.
Login
- E10 input fields often require native setter plus
input,change, andblurevents. - Locate inputs through
data-id, not placeholder or name attributes. - Captcha is expected to be four digits. If fewer digits are recognized, refresh the captcha and retry.
- After login, verify the URL is no longer the login page before extracting docs.
OpenAPI pages
- E10 docs are React SPA pages. Wait after navigation before extracting
document.body.innerText. curlmay return only the shell HTML and is not reliable for page content.- Documentation category entries are often
<a>tags; extract hrefs and navigate directly. - Distinguish “新增流程” from “创建流程实例”. Use the workflow-instance API for external workflow submission.
Workflow and forms
- Prefer internal read-only APIs over UI clicking.
workflowIdis notformId.- Workflow names and form names may differ. Use core keywords.
pageNoandpageSizeare the expected pagination keys, notpageandsize.formFieldSearchEntityis required for field queries.- If
formTableIdreturns no main-table fields, retry withoutformTableId. - Use
getFormto detect detail tables before trying UI switching.
UI fallback
- JS
click()may fail on workflow cards. Coordinate click may be required. - Multiple menu items have similar names. Confirm the current page and tab before extracting fields.
字段设置and字段管理are not the same.- Pagination can be unreliable; prefer requesting enough records through the internal field API.
Output quality
- If requiredness cannot be confirmed, write
需确认. - If field type mapping is unclear, describe the known field type and mark payload mapping as needing confirmation.
- If a workflow has no detail table, omit the detail-table section entirely.
- If generated documentation contains internal API paths or database names, revise before delivery.