[openstreetmap/openstreetmap-website] Compressed empty request body causes 500 response (Issue #6315)

Simon Poole notifications at github.com
Mon Aug 11 10:14:38 UTC 2025


simonpoole created an issue (openstreetmap/openstreetmap-website#6315)

### URL

https://api.openstreetmap.org/api/0.6/notes?lat=47.3859241&lon=8.3932317&text=test

### How to reproduce the issue?

Starting Thursday August 7th all Notes API interactions with Vespucci started to fail with a 500 error (see the Vespucci issue below), while at the same time there were no issues using the regular editing API.

Vespucci gzips request bodies if the corresponding flag is set for the target API since V21 released in March 2025 (the flag is default on for the regular osm.org API). It is (was) a bit overzealous in that it compressed even empty bodies.

Turning off request body compression in the configuration allows things to work again.

@tomhughes has already done some digging and found that rails was throwing "ArgumentError (invalid byte sequence in UTF-8)".

While this is an easily avoided situation, IMHO, if possible with reasonable effort, this should be fixed for robustness reasons.

### Screenshot(s) or anything else?

Vespucci issue https://github.com/MarcusWolschon/osmeditor4android/issues/2964

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6315
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/6315 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250811/aa1a5d51/attachment-0001.htm>


More information about the rails-dev mailing list