Hi everyone,

I have a DSpace 8.3 codebase that we’ve recently upgraded from DSpace 7. 
Everything seems to work well, with the exception of one intermittent issue 
that seems to be related to SSR and the inability to load the i18n translation 
files.

The site will work fine for a while, but if you click around enough, eventually 
the UI requests for the en.[hash].json requests will start failing, and all of 
the translation keys will show up (not just a few). At the same time, I can see 
that the UI also requests en.json (without the hash), which I assume is a 
fallback behaviour when it can’t find the cache-busting hash file. That file 
also returns a 404, and then the translation keys display.

Additional details:

  *
The site is built with yarn build: prod
  *
 The site is served by PM2 in cluster mode
  *
The site is proxied by Envoy proxy

I did some searching and found some similar issues, but none of them had the 
intermittent nature of what I’m describing:

  *
SSR failing because is looking for .json translation files instead of 
.json5<https://groups.google.com/g/dspace-tech/c/pR1pxxVaKpg/m/EGOB2SfNAQAJ>
  *
404 error on language files in 
production<https://groups.google.com/g/dspace-tech/c/qp56Whhtvpo/m/N8AGQWUwAgAJ>

I was able to come up with a workaround for this, but it is definitely a 
band-aid that takes advantage of that fallback behaviour. I have a script that 
I use to build and deploy the site. Once the yarn build: prod command finishes, 
I added some code that copies the en.[hash].json file to en.json so that the 
file is present for that fallback behaviour. It does seem to resolve the issue 
but I don’t really like the idea of relying on that long term.

Anyone else run into this or something similar or have any insights into what 
is going on? Thanks!
-Adam
---
Adam Doan (He/Him)
Systems Developer, Digital Strategy & Technology
(519) 824-4120 x52974
www.uoguelph.ca<https://www.uoguelph.ca/>  |  
www.lib.uoguelph.ca<https://www.lib.uoguelph.ca/>
McLaughlin Library
50 Stone Road East
Guelph, Ontario, Canada N1G 2W1
[A red and yellow line  AI-generated content may be incorrect.]
The information in this message is intended solely for the addressee(s). If you 
are not the designated recipient, please notify the sender immediately, and 
permanently delete the original and any copies. Any use of the message by those 
other than the intended recipients is prohibited.

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://lyrasis.org/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/dspace-tech/YT1PR01MB4332BFECCA70C01FBCE5889EAA0A2%40YT1PR01MB4332.CANPRD01.PROD.OUTLOOK.COM.

Reply via email to