Open BokDevTeam opened 9 months ago
any updates?
Getting the same error
Same error here
I have encountered the same error. For me worked delete the IndexedDB of browser and refresh the page! You can find it under Application section of browser Inspector
Hope this will work fine also for you
We are having a similar issue. Has anyone found a workaround?
When using Hive in the web version, I encounter an issue in the following scenario.
The problem arises when the security key changes in the middle of using secureStorage, resulting in the error "Invalid argument(s): Invalid or corrupted pad block."
The issue occurs when calling Hive.deleteBoxFromDisk or any other Hive function during this situation. The code gets locked, and there is no further response.
I attempted to resolve the problem by using try-catch, intending to call Hive.deleteBoxFromDisk to handle the issue and then reload the webpage. However, I face an issue where the code freezes when attempting to call Hive.deleteBoxFromDisk, preventing the problem from being resolved. Refreshing the page resolves the issue, and it starts functioning normally again.
To reproduce the issue, follow these steps after running the code once. Uncomment either "test key 1" or "test key 2" to alternate between the security keys.
Please note that when running the code in Flutter, make sure to use the --web-port 3000 option to fix the port. This is essential to maintain the same repository and reproduce the problem.