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
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
My version is not a registered nuxeo instance so I can't install the HFs.
Any other solution?
Greetings and thanks for the help
log/server.log
?/nuxeo
?)I am using web ui.
When I change the version, the URL that appears after nuxeo is:
Regards
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.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