Defect #1307
closedFrontend shows "JSON.parse: unexpected character at line 1 column 1 of the JSON data"
100%
Description
10.10.2018 09:55:37 JSON.parse: unexpected character at line 1 column 1 of the JSON data
In Audit->Provisioning I had abou 9000 items in queue and I clicked "Delete all operations". After about a minute I got the error message above.
Updated by Ondřej Kopr about 6 years ago
- Assignee changed from Radek Tomiška to Vladimír Kotýnek
Please check backend log of application there will be some error. Post the error log.
Updated by Peter Štrunc about 6 years ago
Isnt this the default error which FE shows, when there is no response reveived from BE? It looks like the server took too long to answer and FE just threw an error.
Updated by Radek Tomiška about 6 years ago
- Status changed from New to Needs feedback
- Assignee changed from Vladimír Kotýnek to Vít Švanda
- Target version set to Onyx (9.3.0)
- % Done changed from 0 to 90
I improved both features:
- when server time-outed, then better message is shown with warning level
- operation for deleting operations from queue was rewriten to simple hql query (=> one sql delete is called).
Commit:
https://github.com/bcvsolutions/CzechIdMng/commit/349815f61d07792cf2d116f5dbc38709f12cc9db
Could you do a feedback, pls?
Updated by Radek Tomiška about 6 years ago
- Target version changed from Onyx (9.3.0) to Morganite (9.2.2)
Updated by Vít Švanda about 6 years ago
- Assignee changed from Vít Švanda to Radek Tomiška
- It works for redux actions.
- I added catch and resolving that exception on AbstractService layer, where I replaces that exception for syntax error localized exception.
My commit: https://github.com/bcvsolutions/CzechIdMng/commit/672c52a0289a12f5133742c9a8a87fb8c0c60839
- But the best solution for it could be translate the original parse error in the flash massages (may be in the next version).
Updated by Vít Švanda about 6 years ago
I implemented that to FlashMessagesManger:
https://github.com/bcvsolutions/CzechIdMng/commit/4a54ba96e3d25ba437b0ef1dcf671b4cd827df82
Updated by Vít Švanda about 6 years ago
- Assignee changed from Radek Tomiška to Ondřej Kopr
Updated by Ondřej Kopr about 6 years ago
- Assignee changed from Ondřej Kopr to Radek Tomiška
Updated by Radek Tomiška about 6 years ago
- Status changed from Needs feedback to Closed
- % Done changed from 90 to 100
Thx, it works!