isar / isar/hive

1614733237005|E|X-LOG|2021-03-03 09:00:37.001170 -- update ticket exception : HiveError: This should not happen. Please open an issue on GitHub.

Open
#582 0 comments 0 reactions 1 assignee Claimed by @simc View on GitHub
problem
Dominant language
Dart
Stars
4.4k
Forks
449
PR merge metrics
No merged PRs in 30d

Description

I run into the same error, also with hive: ^1.4.1+1
Many of my customers mentioned this issue to me, and it seems like a random issue.
Any idea of how this still happened and what are the solutions?
Thanks.

```
Future updateHiveLocalTicket(
String tableName, int key, List value) async {
try {
final box = await getHiveBox(tableName);
if (key != null) {
await box.put(key, value);
return true;
} else {
return false;
}
} catch (e) {
print( '${DateTime.now()} -- update ticket exception : ${e.toString()}');
return false;
}
}
```
eg for tableName : TICKET_LIST_8

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.