Skip to content

Fix history sync auth and permission errors#69

Draft
DengShiyingA wants to merge 1 commit into
GuDong2003:mainfrom
DengShiyingA:codex/fix-history-sync-errors
Draft

Fix history sync auth and permission errors#69
DengShiyingA wants to merge 1 commit into
GuDong2003:mainfrom
DengShiyingA:codex/fix-history-sync-errors

Conversation

@DengShiyingA

Copy link
Copy Markdown

Summary

  • classify history order list API failures into session-expired, permission-denied, and generic API errors
  • show actionable account-level warnings during history sync instead of failing the whole batch on one account
  • add regression coverage for FAIL_SYS_SESSION_EXPIRED, PERMISSION_EXCEPTION, and unknown ret values

Why

Issues #58 and #64 currently surface raw platform ret values such as FAIL_SYS_SESSION_EXPIRED and PERMISSION_EXCEPTION, which makes the history sync job fail with little guidance. These errors are platform/session/account-permission states, so the app should explain the next action and continue syncing other accounts where possible.

Validation

  • .venv/bin/python -m unittest tests.test_order_history_sync_errors
  • .venv/bin/python -m compileall -q utils/order_history_sync.py reply_server.py tests/test_order_history_sync_errors.py

Addresses #58 and #64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants