Project

General

Profile

Actions

Defect #1307

closed

Frontend shows "JSON.parse: unexpected character at line 1 column 1 of the JSON data"

Added by Vladimír Kotýnek over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Radek Tomiška
Category:
Frontend
Target version:
Start date:
10/10/2018
Due date:
% Done:

100%

Estimated time:
Affected versions:
Owner:

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.

Actions #1

Updated by Ondřej Kopr over 5 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.

Actions #2

Updated by Peter Štrunc over 5 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.

Actions #3

Updated by Radek Tomiška over 5 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?

Actions #4

Updated by Radek Tomiška over 5 years ago

  • Target version changed from Onyx (9.3.0) to Morganite (9.2.2)
Actions #5

Updated by Vít Švanda over 5 years ago

  • Assignee changed from Vít Švanda to Radek Tomiška
I did review and test.
  • 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).
Actions #6

Updated by Vít Švanda over 5 years ago

Actions #7

Updated by Vít Švanda over 5 years ago

  • Assignee changed from Radek Tomiška to Ondřej Kopr
Actions #8

Updated by Ondřej Kopr over 5 years ago

  • Assignee changed from Ondřej Kopr to Radek Tomiška
Actions #9

Updated by Radek Tomiška over 5 years ago

  • Status changed from Needs feedback to Closed
  • % Done changed from 90 to 100

Thx, it works!

Actions

Also available in: Atom PDF