Skip to content

lean data download US Equities Daily Bulk fails with Server misconfigure #EQMSy8k #649

@KaiChengLiu

Description

@KaiChengLiu

Lean CLI data download failure: US Equities Daily Bulk returns Server misconfigure #EQMSy8k

Summary

lean data download --dataset "US Equities" --data-type Bulk --resolution Daily --yes --overwrite --verbose fails while listing files for the US Equities daily bulk dataset.

The same workspace can authenticate successfully and can read organization metadata. The failure appears to come from the QuantConnect API response for POST /api/v2/data/list.

Environment

  • OS: Windows 10
  • Python: 3.11.14 in conda env
  • Lean CLI before retry: 1.0.221
  • Lean CLI after upgrade: 1.0.225
  • Click before compatibility fix: 8.3.1
  • Click after compatibility fix: 8.1.8
  • Docker: 29.2.0
  • Lean image label observed by CLI:
    • image: quantconnect/lean
    • lean_version: 17764
    • python_version: 3.11
    • target_framework: net10.0

Steps Tried

  1. Original daily scheduler failed repeatedly with:

    lean data download --dataset "US Equities" --data-type Bulk --resolution Daily --yes --overwrite
  2. Upgraded Lean CLI:

    pip install --upgrade lean

    Result:

    lean 1.0.225
    
  3. Fixed Lean CLI / Click help compatibility issue by pinning Click:

    pip install "click<8.2"

    Result:

    click 8.1.8
    
  4. Re-ran the data download with verbose logging:

    lean data download --dataset "US Equities" --data-type Bulk --resolution Daily --yes --overwrite --verbose

Actual Result

The command fails with:

Request response: {"errors":["Server misconfigure #EQMSy8k"],"success":false}
Request was not successful, status code 200, body:
{"errors":["Server misconfigure #EQMSy8k"],"success":false}
lean.models.errors.RequestFailedError: Server misconfigure #EQMSy8k
Error: Server misconfigure #EQMSy8k

The verbose log shows the failing request:

POST https://www.quantconnect.com/api/v2/data/list
{
    "filePath": "setup/equity/usa/u_s__equities_taq_price_processing_daily_resolution.tar"
}

Expected Result

The CLI should list and download the subscribed US Equities daily bulk files, or return a more actionable entitlement/configuration error if the request is invalid.

Notes

  • The organization can authenticate successfully.

  • US Equity Security Master download succeeded in the daily pipeline before this failure.

  • Organization subscriptions shown by the API include US Equity Security Master and US Equity Daily History/Updates products.

  • The error persists after upgrading Lean CLI from 1.0.221 to 1.0.225 and pinning Click to 8.1.8.

  • The full local verbose log is stored locally at:

    C:\QC_Machine\data\logs\scheduler\manual_lean_us_equities_daily_verbose_20260612.log
    

    The full raw log contains organization/account details, so it should be shared privately with QuantConnect support rather than posted publicly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions