fix(tradein-phase-c): house_type 'monolith'→'monolithic' + log 400 body #537

Merged
lekss361 merged 1 commit from fix/tradein-phase-c-house-type-mapping into main 2026-05-24 15:05:50 +00:00

1 commit

Author SHA1 Message Date
lekss361
c533d3affd fix(tradein-phase-c): map house_type 'monolith'→'monolithic' + log 400 body
Avito IMV API rejects raw listings.house_type values 'monolith' and
'monolith_brick' with HTTP 400 silent body. Verified live: panel/brick/
monolithic/block/wood are valid; monolith/monolith_brick fail.

- backfill-house-imv.py: _HOUSE_TYPE_TO_IMV dict + _map_house_type() helper
  applied to median house_type from linked listings
- avito_imv.py: log response.text snippet on >=400 status before raising
  for future contract drift visibility
2026-05-24 17:58:52 +03:00