ENAMETOOLONG: how one dirty field in the database dropped the static build
У нас на podbor-minuta.ru около 600 страниц-подборок квартир собираются заранее в готовый HTML. Адрес каждой страницы строится из данных: город, район или метро, число комнат, цена. Например, /novostroyki/rayon/nagatino/2-komnatnye. Однажды сборка упала с ошибкой ENAMETOOLONG - имя файла слишком длинное. Как это вышло. Данные о квартирах мы собираем автоматически с разных сайтов. В одной записи…
The website podbor-minuta.ru, which monitors new building prices in Moscow, experienced an issue with its static page generator. The problem arose when a record of an apartment contained a long description in the "district" field, which was then used to create a page address, exceeding the 255-byte limit for folder names in the file system. This resulted in the entire build process failing. The issue was resolved by implementing a length limit for address segments and filtering out problematic data at its source.
Written by urgent.news from Dev.to's report — not a translation of it. Machine-written — may contain errors; check the original before relying on it.