Hi, I'm implementing http-status-code in server responses and want to show an error if something go wrong.
I want to know when the server send me an status like 401 (HTTP/1.0 401 Unauthorized) to show an error, and for that, I listen for dgrid-error:
If the server respond with an 401 status code when dgrid loads for first time, the error is triggered. The evt.error.response.status shows me 401, is OK.
But, once the table is loaded, if the server responds with an 401 status code while requests are made in scroll action, no error is triggered.
Both errors shoud be triggered from OnDemandList.js, but only triggers in initial dgrid load (line 238). Subsequent orders made by scrolling in dgrid, reach 'throw' in line 796, but no emit any 'dgrid-error'.
Hi, I'm implementing http-status-code in server responses and want to show an error if something go wrong. I want to know when the server send me an status like 401 (HTTP/1.0 401 Unauthorized) to show an error, and for that, I listen for dgrid-error:
If the server respond with an 401 status code when dgrid loads for first time, the error is triggered. The evt.error.response.status shows me 401, is OK.
But, once the table is loaded, if the server responds with an 401 status code while requests are made in scroll action, no error is triggered.
Both errors shoud be triggered from OnDemandList.js, but only triggers in initial dgrid load (line 238). Subsequent orders made by scrolling in dgrid, reach 'throw' in line 796, but no emit any 'dgrid-error'.