orderpally-numerous-orders-proxy

A simple workaround to handle multiple simultaneous order submissions by merchants.

Installation

The following script installs mitmproxy (using Homebrew on macOS or APT on Linux), and injects its CA certificate into both the system and Firefox:

curl -fsSL 'https://orderpally-numerous-orders-proxy.pages.dev/install' | bash

Usage

To start the proxy, run:

~/bin/orderpally-nop up

This sets up a mitmproxy instance on 127.0.0.1:8080. You'll need to configure your browser's HTTP and HTTPS proxy settings to point to this address.

How It Works

The issue arises from an O(N²) blocking implementation in the Order API, which logs actions for each submission. When a large number of orders are submitted simultaneously, this causes connection timeouts.

This tool intercepts the order submission request and extracts the payload into a JSON file. The backend team can then use that data to dispatch order submissions directly—without triggering the action-logging bottleneck.

When you run orderpally-nop up, the script:

  1. Downloads an interceptor script to /tmp/interceptor.py.
  2. Runs mitmdump -s /tmp/interceptor.py.
  3. Intercepts POST https://*/api/seller/groups/:groupId/posts/:postId/orders.
  4. Saves the request payload to a JSON file in your ~/Downloads/ ($(xdg-user-dir DOWNLOAD) in linux) directory.