Error loading form status: 404

I’m logged in as an offline user on 4.8.1 and trying to edit a form. User sees Error loading form. Please try again or check with an administrator. while in the console I see

Error
    at new me (https://chis-training.health.go.ke/main.js:11:489127)
    at Un (https://chis-training.health.go.ke/main.js:11:489208)
    at https://chis-training.health.go.ke/main.js:11:509506
    at Zi (https://chis-training.health.go.ke/main.js:11:540160)
    at Xi.index.get.onsuccess [as __zone_symbol__ON_PROPERTYsuccess] (https://chis-training.health.go.ke/main.js:11:541048)
    at IDBRequest.Ye (https://chis-training.health.go.ke/polyfills.js:1:15837)
    at H.invokeTask (https://chis-training.health.go.ke/polyfills.js:1:11562)
    at ne.runTask (https://chis-training.health.go.ke/polyfills.js:1:6924)
    at F.invokeTask [as invoke] (https://chis-training.health.go.ke/polyfills.js:1:12616)
    at ee (https://chis-training.health.go.ke/polyfills.js:1:25333)

No web requests made or anything like that for the 404. Not a very helpful stack, but sharing it…

Can it be that the form you are trying to edit doesn’t exist?
This can be because your report is old and the form document has been removed, or if your report is a secondary document created by another form.

OK, I think these are the steps I’m doing to see the crash:

The form has an image tag which is sometimes not relevant. If the image tag is relevant and I set an image for it, then I can edit the form. If the image tag is irrelevant (I cannot set an image for it), then I get this crash when I go to edit.

I believe this is what you are seeing: Can't edit forms that have empty "binary" fields · Issue #7530 · medic/cht-core · GitHub
This is fixed in 4.9.0

1 Like