Skip to content

Uploading a plugin with RPC endpoint failed #93

@Gustry

Description

@Gustry

I though I already made a ticket for that, but I can find any :)

I'm uploading many plugins with the RPC endpoint. It works well, it is integrated into QGIS-Plugin-CI.

I just found a ticket into this repository explaining the problem : opengisch/qgis-plugin-ci#301

Since 2 or 3 years, the upload of QuickOSM systematically failed with the same error message :

Run qgis-plugin-ci release 2.4.0 --github-token *** --transifex-token *** --osgeo-username *** --osgeo-password *** --create-plugin-repo
2025-04-02 10:49:04||ERROR||release||=== A protocol error occurred ===
Plugin archive created: QuickOSM.2.4.0.zip (6.94 Mo)
URL: plugins.qgis.org:443/plugins/RPC2/
HTTP/HTTPS headers: {'Date': 'Wed, 02 Apr 2025 10:49:04 GMT', 'Content-Type': 'text/html; charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'vary': 'Cookie', 'x-content-type-options': 'nosniff', 'referrer-policy': 'same-origin', 'cross-origin-opener-policy': 'same-origin', 'Set-Cookie': 'sessionid=dyzj09lcuruuwvrbkinwloghtgq5wo40; expires=Wed, 16 Apr 2025 10:45:32 GMT; HttpOnly; Max-Age=1209600; Path=/; SameSite=Lax', 'cf-cache-status': 'DYNAMIC', 'Report-To': '{"endpoints":[{"url":"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=SgOhgLZ04kzJ80eauU88aL9QEMKM2GUvhLK1tXuw%2BPkUBqP6OS1hiizSQX1IfxpKI4XXqGAfvhYYY%2FWkxsgjBo0ZBnTXsvhlBNbeNqveb6H8AOpOCBvQVJ1WTtco2ltlVmG9"}],"group":"cf-nel","max_age":604800}', 'NEL': '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}', 'Server': 'cloudflare', 'CF-RAY': '929fc1d7081458d2-IAD', 'alt-svc': 'h3=":443"; ma=86400', 'server-timing': 'cfL4;desc="?proto=TCP&rtt=5158&min_rtt=5156&rtt_var=1937&sent=146&recv=7123&lost=0&retrans=0&sent_bytes=2831&recv_bytes=9849943&delivery_rate=552204&cwnd=251&unsent_bytes=0&cid=e43f395a47faadbc&ts=2878&x=0"'}
Error code: 400
Error message: Bad Request
Plugin path: QuickOSM.2.4.0.zip
Error: Process completed with exit code 2.

Downloading the ZIP from the CI artifact, and uploading it manually into https://plugins.qgis.org works perfectly.

Is-it possible to have a look to the logs on the server side why it fail ? Is-it the size of the ZIP ?

It's very easy to reproduce, try to upload the zip from QuickOSM using the RPC entrypoint.

Regards,

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions