bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
53 stars 6 forks source link

Should be possible to disable error message on request fail #9936

Open chuckn0rris opened 3 weeks ago

chuckn0rris commented 3 weeks ago

Forum post

Hey,

When calling sync or load and it failed with 401, by using requestfail listener, i am then calling refresh token api to get a new access token.

This is working but i would need a way to retry the sync or load request seemlessly. Right now the chart shows the error, and if the user refreshes the page it will work well.

Ask: How can i, on failure, check if its 401 and then call refresh token and then retry the same request again?