404 error on language files in production

10 views
Skip to first unread message

Otuoma Sanya

unread,
Sep 22, 2025, 7:13:28 AM (22 hours ago) Sep 22
to DSpace Technical Support
I have a strange error on my dspace version 9.1 repository at https://karuspace.karu.ac.ke. The language files are failing to load when in production mode instead returning 404 error. I made the following observations
1. It only occurs when running in production mode. Even when I run the application on my local development machine using `npm run start`, this error still occurs
2. It only occurs on GET requests, eg https://karuspace.karu.ac.ke/search?spc.page=1. Submitting a form which uses POST requests behaves normally.
3. It only seems to occur when accessing /search paths eg https://karuspace.karu.ac.ke/search?spc.page=1
4. The browser appears to be looking for /assets/i18n/en.json which in my case does not exist in either dist/browser/assets/i18n or dist/server/assets/i18n directories. On other sites that are working correctly, these file names are hashed, like en.048a59f6aded4af79bc3c464e8348dfa.json. The files with hashed names also exist on my production system in i18n directories. 

So why is my app looking for en.json instead of en.048a59f6aded4af79bc3c464e8348dfa.json?


KARATINA UNIVERSITY

Inspiring Innovation and Leadership
Main Campus | Kagochi, Karatina | P.O. Box 1957 – 10101 Karatina, Kenya

Tel: +254 20 217 6713 | Cell: +254 729 721 200
Email: in...@karu.ac.ke | Website: www.karu.ac.ke

DISCLAIMER
The information in this email is confidential and may be legally privileged information and is intended solely for the addressee. Please read the Karatina University (KarU) Email Terms and Conditions. https://karu.ac.ke/karatina-university-email-disclaimer/ 
angular.json
config.prod.yml
package.json
Screenshot 2025-09-22 122233.png
Reply all
Reply to author
Forward
0 new messages