Skip to content

ShipBob cancellation reports success for empty-body HTTP errors #13183

Closed

Description

@kaijakagi-sys

The ShipBob cancel_wro tool can claim a WRO was cancelled when the HTTP request failed. At the current source, make_shipbob_request returns {"error": response.text, "status_code": response.status_code} for an unsuccessful status. The cancellation handler tests the truthiness of result.get("error"), so an empty error body falls through to **WRO #12345 has been cancelled.**.

I reproduced this offline by executing the two unchanged function bodies with registration decorators removed and request/auth/HTTP transport/response-model stubs (no module startup or live fulfillment calls):

Synthetic HTTP response Helper result Tool output
500, empty body {"error":"","status_code":500} Cancellation success
400, empty body {"error":"","status_code":400} Cancellation success
500, upstream failure {"error":"upstream failure","status_code":500} Cancellation error
200, JSON {"id":12345} {"id":12345} Cancellation success

Four assertions passed. These are synthetic boundary cases, not an observed production incident or a claim that ShipBob normally returns empty error bodies. ShipBob's error reference identifies 500 as a server error, and its receiving guide defines cancellation as a WRO state transition; an HTTP failure is not evidence that transition completed.

Proposed compact scope: make this plugin's request-error classification independent of message-body truthiness, keep cancellation failure distinct from confirmed success, and add hermetic regression coverage for the empty-body failure plus ordinary failure/success controls. Review the same helper's callers as part of that shared boundary rather than introducing a cancellation-only workaround. No retry or automatic second mutation is proposed. A hard failure should use the existing error path, consistent with the fallback-telemetry contract. Full component/preflight checks have not been run for this source-only report and would be required for a PR.

I checked the ShipBob-related issue/PR results and the actual patches for #8599 (shared models/SDK), #7394 (dependencies), and #10144 (desktop home); none fixes this request/cancellation boundary. Is this standalone integration still supported, and would a $25 bounty be appropriate for this scope under the contribution guide? The amount is proposed, not an existing funded bounty. @josancamon19 @kodjima33

Activity

  1. moved this from Someday to In progress in omi TODO / bountieson Sep 9, 2026
  2. Nukeys commented on Sep 11, 2026

    @Nukeys
    Contributor

    Opened PR #13517. cancel_wro now fails when ShipBob returns an error/status_code key even if the error string is empty.

  3. added a commit that references this issue on Sep 12, 2026
    47d9345
  4. moved this from In progress to In review in omi TODO / bountieson Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions