cancel
Showing results for 
Search instead for 
Did you mean: 

Error viewing previous version of a document. Error 500

j_porras
Champ in-the-making
Champ in-the-making

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

9 REPLIES 9

Florent_Guillau
World-Class Innovator
World-Class Innovator

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

Florent_Guillau
World-Class Innovator
World-Class Innovator

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

j_porras
Champ in-the-making
Champ in-the-making

Thanks for answering.

Ahmad_Ben_Maall
Star Contributor
Star Contributor

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

Good Morning,

Florent_Guillau
World-Class Innovator
World-Class Innovator

Ok. What about server.log?

j_porras
Champ in-the-making
Champ in-the-making

I have added the full error from the server.log as an attachment.

Florent_Guillau
World-Class Innovator
World-Class Innovator

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.

j_porras
Champ in-the-making
Champ in-the-making

Good Morning,