[Loris-dev] Error on data dictionary

Dave MacFarlane dave.macfarlane at mcin.ca
Thu Nov 11 09:24:02 EST 2021


Hi Eli,

I'm not sure why that would have broken between 2 bug fix releases, but the
error "SyntaxError: Unexpected end of JSON input" implies that the attempt
to fetch the fields returned invalid input. This can happen if, for
instance, an exception is thrown by the ajax request. If you open the
network tab* in your developer tools before loading the page there should
be a request for "(your url)/datadict/fields". Click on that, and then the
"Response" tab* in the network tools and you should get a better idea of
what's being returned to debug.

* That's how they're labeled in Firefox. I'm not sure off the top of my
head what the labels are in Chrome but it should be similar.

On Wed, Nov 10, 2021 at 2:29 PM Eli Johnson <joh17964 at umn.edu> wrote:

> Hi,
>
> I am updating from LORIS v23.0.2 to v23.0.8 (running on RHEL7). Everything
> is working except the data dictionary. I'm getting an error when trying to
> load the data dictionary module. The data dictionary page contains the text
> "An error occurred while loading the page", there is nothing logged in the
> apache error-log, the browser console reports "SyntaxError: Unexpected end
> of JSON input" on dataDictIndex.js:49.  I'm not super familiar with react
> so I'm not sure how to find the source of the error although it looks like
> it's occurring on *fetchData*. Any idea why this would happen or
> suggestions on how to debug?
>
> Thanks,
> Eli
>
> Eli Johnson
> Developer/Data Manager
> Institute of Child Development
> University of Minnesota
> joh17964 at umn.edu
> _______________________________________________
> Loris-dev mailing list
> Loris-dev at bic.mni.mcgill.ca
> https://mailman.bic.mni.mcgill.ca/mailman/listinfo/loris-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.bic.mni.mcgill.ca/pipermail/loris-dev/attachments/20211111/0546cadc/attachment.html>


More information about the Loris-dev mailing list