JSON Error on Button Click
Posted: August 31st, 2022, 11:09 am
I have seen this issue in classic for a while now and it had been hard to recreate. I had a few more examples now that I could recreate and I searched in our issue history and found some good screenshots to better see all the cases.
For some it was a userdialog service that caused it and others it was ajax on for the button that was the cause.
Platform 4
Case 1 On the EASYCommerce Account Home page, click to email a user their password, progress animation shows. SetTerminateActions window shows, click Ok. go to header search bar and type a value, click search. Progress animation shows. JSON error pops up.
Case 2 This one was raised to me by a user: I was searching for a product in the item catalogue and after clicking the search button this warning box did pop up. After clicking “ok” the product was shown anyways.
Other
Case 1
I don't remember where this one happened. On a specific EASYCommerce install where a button was added to download files. Click a button that streams a file, then click any other button on the page. The invalid JSON error came up. The fix for this was to turn ajax off for the button
Paris
Case 1
Feb, March, April, July 2021, March 2022
On the checkout page, user clicks a button to place the order, but the path runs a user dialog service. An issue was found by the internal team for the UserDialog service. Fix was applied by Justin May 2022 (ref issue 0896) Case 2
August 2022
On the catalog page filtered by a search, when trying to add an item from the grid view to cart. Not sure if this had a user dialog service in it, but this was after a fix was applied to the tenant for the user dialog service, so that shouldnt have errored anymore.
For some it was a userdialog service that caused it and others it was ajax on for the button that was the cause.
Platform 4
Case 1 On the EASYCommerce Account Home page, click to email a user their password, progress animation shows. SetTerminateActions window shows, click Ok. go to header search bar and type a value, click search. Progress animation shows. JSON error pops up.
Case 2 This one was raised to me by a user: I was searching for a product in the item catalogue and after clicking the search button this warning box did pop up. After clicking “ok” the product was shown anyways.
Other
Case 1
I don't remember where this one happened. On a specific EASYCommerce install where a button was added to download files. Click a button that streams a file, then click any other button on the page. The invalid JSON error came up. The fix for this was to turn ajax off for the button
Paris
Case 1
Feb, March, April, July 2021, March 2022
On the checkout page, user clicks a button to place the order, but the path runs a user dialog service. An issue was found by the internal team for the UserDialog service. Fix was applied by Justin May 2022 (ref issue 0896) Case 2
August 2022
On the catalog page filtered by a search, when trying to add an item from the grid view to cart. Not sure if this had a user dialog service in it, but this was after a fix was applied to the tenant for the user dialog service, so that shouldnt have errored anymore.