Skip to content

Shopware CLI extension file size validation more strict than Shopware Account UI #970

@hanneswernery

Description

Shopware Version

6.7.x

Shopware CLI Version

FriendsOfShopware/shopware-cli-action 3.0.0

PHP Version

Operating System

Ubuntu LTS 22.04

CLI Command

shopware-cli account producer extension upload --verbose 'pickware-1.24.0.zip'

Actual behaviour

Our publish-release CI run failed with the following error: "413 Request Entity Too Large"

The exact same release zip file can be uploaded via the Shopware Account UI manually. (I did this and the upload succeeded).
The file size is 9.5MB

Expected behaviour

The plugin release file should be uploadable. Just as it is uploadable via Shopware Account UI.

Relevant log/output

2026-04-28T13:10:17.391Z	DEBUG	Starting upload process for file: /home/runner/work/{...}/pickware-1.24.0.zip
2026-04-28T13:10:17.757Z	DEBUG	GET: https://api.shopware.com/integrations/shopwarecli/producers, took: 365.978683ms
2026-04-28T13:10:18.009Z	DEBUG	Extension name: Pickware
2026-04-28T13:10:19.058Z	DEBUG	GET: https://api.shopware.com/plugins?producerId={...}&search=Pickware, took: 1.048519974s
2026-04-28T13:10:19.548Z	DEBUG	GET: https://api.shopware.com/plugins/{...}, took: 388.013447ms
2026-04-28T13:10:19.651Z	DEBUG	Found extension with ID: {...}
2026-04-28T13:10:19.979Z	DEBUG	GET: https://api.shopware.com/producers/{...}plugins/{...}/binaries, took: 327.51053ms
2026-04-28T13:10:19.981Z	DEBUG	Retrieved 37 existing binaries
2026-04-28T13:10:19.981Z	DEBUG	Zip version: 1.24.0
2026-04-28T13:10:20.246Z	DEBUG	GET: https://api.shopware.com/pluginstatics/softwareVersions?filter=[{"property":"pluginGeneration","value":"plugin"},{"property":"includeNonPublic","value":"1"}], took: 265.038159ms
2026-04-28T13:10:20.247Z	DEBUG	Shopware version constraint: >=6.6.10.15,<6.8
2026-04-28T13:10:20.247Z	DEBUG	No existing binary found for version 1.24.0, creating new one
2026-04-28T13:10:20.596Z	DEBUG	POST: https://api.shopware.com/producers/{...}/plugins/{...}/binaries, took: 341.72432ms
2026-04-28T13:10:20.596Z	INFO	Created new binary with version 1.24.0
2026-04-28T13:10:20.596Z	DEBUG	Created binary with ID: 166067
2026-04-28T13:10:20.605Z	DEBUG	Updating extension binary info for extension ID 20085, binary ID 166067
2026-04-28T13:10:21.010Z	DEBUG	PUT: https://api.shopware.com/producers/94/plugins/20085/binaries/166067, took: 404.832444ms
2026-04-28T13:10:21.011Z	INFO	Updated changelog. Uploading now the zip to remote
2026-04-28T13:10:21.011Z	DEBUG	Uploading zip file from path: /home/runner/work/{...}/pickware-1.24.0.zip
2026-04-28T13:10:21.144Z	DEBUG	POST: https://api.shopware.com/producers/{...}/plugins/{...}/binaries/166067/file, took: 100.436601ms
2026-04-28T13:10:21.144Z	DEBUG	UpdateExtensionBinaryFile returned error: <html>
<head><title>413 Request Entity Too Large</title></head>
<body>
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>nginx</center>
</body>
</html>
, got status code 413
2026-04-28T13:10:21.144Z	DEBUG	Error is not BinariesException-40, returning error
Usage:
  shopware-cli account producer extension upload [zip] [flags]

Flags:
  -h, --help                     help for upload
      --skip-for-review-result   Skips waiting for Code review result

Global Flags:
  -n, --no-interaction   do not ask any interactive questions
      --verbose          show debug output

2026-04-28T13:10:21.144Z	FATAL	upload extension binary file: <html>
<head><title>413 Request Entity Too Large</title></head>
<body>
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>nginx</center>
</body>
</html>
, got status code 413
Error: Process completed with exit code 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions