Error viewing previous version of a document. Error 500

Good Morning,

I have a problem with the versions of my documents.

The latest version is displayed without problems, but when I want to view a previous one, I get a 500 error (internal server error; Invalid Json; The document could not be loaded)

I have looked at the log and it shows me the following:

“Caused by: org.elasticsearch.client.ResponseException: method [POST], host [http: // localhost: 9200], URI [/ nuxeo-audit / _search? Typed_keys = true & ignore_unavailable = false & expand_wildcards = open & allow_no_then_indices = true & search_type_chesize_then_indices = true & search_type_chesize_duce_query \\\\\\\\ 's ], status line [HTTP / 1.1 400 Bad Request] {“error”: {“root_cause”: [{“type”: “parse_exception”, “reason”: “failed to parse date field [2020-08-07T08: 23: 59.704Europe / Madrid] with format [strict_date_optional_time || epoch_millis] “}],” type “:” search_phase_execution_exception “,” reason “:” all shards failed “,” phase “:” query “,” grouped “: true,” failed_shards “: [{” shard “: 0, “index”: “nuxeo-audit”, “node”: “e2YWIh-hQnuyuwuSt_6jEQ”, “reason”: {“type”: “parse_exception”, “reason”: “failed to parse date field [2020-08-07T08: 23: 59.704Europe / Madrid] with format [strict_date_optional_time || epoch_millis] “,” caused_by “: {” type “:” illegal_argument_exception “,” reason “:” Unrecognized chars at the end of [2020-08-07T08: 23: 59.704Europe / Madrid]: [Europe / Madrid] “}}}]},” status “: 400}”

Does anyone know why this happens and how to solve it?

Thank you

FILES:   server.log.txt
0 votes

1 answers

1133 views

ANSWER

Do you have a full stack trace, visible in log/server.log ?
08/11/2020

Also are you using the Web UI or the JSF UI (i.e., what's in the URL after /nuxeo?)
08/11/2020

Thanks for answering.

I am using web ui.

When I change the version, the URL that appears after nuxeo is:

/nuxeo/ui/#!/doc/150143cb-29c1-407c-84dc-223f4f44b5fa

Regards

08/12/2020

Ok. What about server.log?
08/12/2020

I have added the full error from the server.log as an attachment.
08/12/2020

Thanks for the logs, they're helpful. But without a reproducer it's a bit hard to debug. Could you use browser tools to see what request gets sent from the browser to Nuxeo when you try to display the version? The goal is to find out if what's adding the incorrect Europe/Madrid in the date is client-side in the browser, or server-side in the Nuxeo server itself. I suspect it's cllient-side but it'd be nice to see the JSON of the request made.
08/14/2020

Good Morning,

We have been using the browser tools and we have not found differences between the documents that allow us to see if they are versioned, and those that do not.

Is there any way to query elasticsearch to get an audit of a document to see if there is any wrong data that is causing the error?

Thank you very much for your help

08/18/2020



Hello, I had the same problem after a log purge action and I managed to find a solution except that it is not the ideal one for me. https://answers.nuxeo.com/general/q/29c5d156f621480fb4006c9a604e96bf/Error-after-purging-audit-log

0 votes



Good Morning,

My version is not a registered nuxeo instance so I can't install the HFs.

Any other solution?

Greetings and thanks for the help

08/12/2020