Enketo error (fail loading translation-combined.json 404)

Yes

1. What is the issue? Please be detailed.
I have this issue raised from the odk user that using enketo form via offline. The domain link example will be https://your-domain/-/x/....

2. What steps can we take to reproduce this issue?

3. What have you tried to fix the issue?
clear browser cache and reload form

4. Upload any forms or screenshots you can share publicly below.

Hello.

I have the same issue..

I believe this can happen if you don't set a default language in the xlsx form's settings-tab. Could you try specifying a default language (e.g. "en") and see if that resolves the issue?

After some more testing I now believe there is a bug in ODK central/enketo express, where the you get an error if you browser language is not defined in the form (it appears to me, that this happens even for forms with only one/default language defined).
Apparently there is an undocumented query-string parameter (as mentioned here https://github.com/enketo/enketo/issues/1082) but that appears to only work for previews (where there are no issues for the Catalan browser), and not for the public links.

Steps to reproduce:
(using a clean install of ODK Central v2024.3.1)

  • make a simple form, without specifying language
  • publish and copy "public access" link
  • use the link in a browser with non-en language setting (e.g. Catalan - iana code "ca"), and you will see this error:

Clicking "OK" sadly just closes the modal box and shows a blank screen..

I'm kinda stuck here, so any help would be much appreciated!

//emil

There was a bug in Enketo's handling of unsupported locales. The fix has been merged and will be released soon.

1 Like

@yanokwa Thanks!

I have now built a local central-enketo image based on a local image built on the current Enketo main branch and tested it.

I can confirm that the fix does indeed solve the problem - thanks again for your very quick reply! :sunny: :sweat_smile:

2 Likes