Skip to content

Browser exception : Setting the value of '_wow_xhr_log_completed_calls_' exceeded the quota #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jduraisamy opened this issue Jun 23, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@jduraisamy
Copy link

When we use the WOW_XHR driver to run the scripts, then the application was broken., And while doing analysis, then found browser throws the below exception in console.

Kindly help to check and advise to resolve the issue., Thanks.

Uncaught (in promise) DOMException: Failed to execute 'setItem' on 'Storage': Setting the value of '_wow_xhr_log_completed_calls_' exceeded the quota. at e.setCompletedCalls (eval at executeScript (:1:1), <anonymous>:3:8618) at e.afterXHR (eval at executeScript (:1:1), <anonymous>:3:8489) at eval (eval at executeScript (:1:1), <anonymous>:3:13335) at eval (eval at executeScript (:1:1), <anonymous>:3:12640) at Object.eval [as next] (eval at executeScript (:1:1), <anonymous>:3:12745) at a (eval at executeScript (:1:1), <anonymous>:3:11483)

@sudharsan-selvaraj
Copy link
Owner

Thanks for posting and this seems a valid issue. Currently, local storage has few limitations that it can save only a certain amount of data for a single key. In this case, https://github.com/sudharsan-selvaraj/wow-xhr/blob/master/wow-xhr-js/src/modules/XhrLog.ts#L35 we need to optimize the data stored in _wow_xhr_log_completed_calls_ local storage key.

@sudharsan-selvaraj sudharsan-selvaraj self-assigned this Jun 23, 2021
@sudharsan-selvaraj sudharsan-selvaraj added the bug Something isn't working label Jun 23, 2021
@sudharsan-selvaraj
Copy link
Owner

sudharsan-selvaraj commented Jun 23, 2021

As a temporary fix, you can use wowXHR.log().clearLogs(); to manually clear the Xhr logs that are stored in the sessionStorage. Meanwhile, I will work on fixing the issue.

@jduraisamy
Copy link
Author

Thanks @sudharsan-selvaraj for the swift response. Will try the given temporary solution.,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants