Trek_CN/server/src
Hardik-369 544a76d2da fix(maps): increase Overpass timeout and add instance-specific User-Agent
The POI search endpoint (/api/maps/pois) returned 502 errors because:

1. OVERPASS_TIMEOUT_MS (12s) was shorter than mirror response times
   (kumi.systems takes ~25.7s to first byte). Increased to 25s to match
   the [timeout:20] query timeout.

2. The static User-Agent string was indistinguishable between instances,
   making rate-limiting and throttling more likely. The new userAgent()
   function appends the instance's APP_URL so each deployment identifies
   itself uniquely, following Overpass API best practices.
2026-06-27 20:14:52 +02:00
..
db Use Google Maps feature IDs for place map links 2026-06-27 20:14:52 +02:00
demo v2.6.2 — TREK Rebrand, OSM Enrichment, File Management, Hotel Bookings & Bug Fixes 2026-03-28 16:38:08 +01:00
mcp Use Google Maps feature IDs for place map links 2026-06-27 20:14:52 +02:00
middleware feat(maps): add MapLibre OpenFreeMap support (#1317) 2026-06-27 20:14:52 +02:00
nest fix(days): align note time limit to 250 and keep toasts above modal blur (#1252) 2026-06-23 21:23:39 +02:00
services fix(maps): increase Overpass timeout and add instance-specific User-Agent 2026-06-27 20:14:52 +02:00
systemNotices Bug fixes - May 2nd 2026 (#941) 2026-05-03 17:39:45 +02:00
typings Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
utils Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
addons.ts Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
bootstrap.ts Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
config.ts v3.1.1 bug fixes (#1228) 2026-06-18 20:13:30 +02:00
index.ts Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
scheduler.ts Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
types.ts Use Google Maps feature IDs for place map links 2026-06-27 20:14:52 +02:00
websocket.ts Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00