is delete of forge storage api not working ?
frontend
<button
onClick={async () => {
await invoke('deletekey');
}}>delete all</button>
<button
onClick={async () => {
await invoke('getallkeys')
}}>get all key</button>
backend
resolver.define("deletekey", async () => {
await storage.delete('testkey');
});
resolver.define('getallkeys', async () => {
await storage.query().limit(20)
.getMany().then((result) => {
console.log(result.results);
})
});
After perssing on delete button i press on get all keys button and i still get the âtestkeyâ with its value !
pleae i need some help
3 Likes
Hi,
We have the same issue in our production applications. They were working fine for a year or more until this morning. In addition to delete operation, nextCursor value returned from getMany() is no longer undefined when there is no more results, it is now equals to 2 spaces, " ".
We are seeing this impact us as well.
@GhattasHaithem,
From your code example, itâs not clear how your code expects to deal with eventual consistency. In other words, I think the fact that you still see testKey
could be expected behavior.
Can you confirm that you never see the delete processed?
Definitely a âneverâ case and the key we provide was always correct.
1 Like
@denizoguz and @GirishReddy,
If you are seeing an incident, please report it to developer support. The ability of the Forge team to pick this up from the community as an urgent problem is also âeventually consistentâ. Jokes aside, please do open a case with developer support.
I did that already. Thanks for your comments as well!
1 Like
@j.borrmann,
Glad that youâre ahead of me!
Did you make the report public so others can watch it? If so maybe let us know the issue key so the community can learn as case unfolds.
1 Like
I donât think I can make it public yet, wouldnât know where. I can only invite other users by e-mail. Itâs ECOHELP-34613. I raised it with the type âBugâ instead of âIncidentâ. Is that a problem?
1 Like
As of now (2024-02-05, 7:21 PM CET) storage.delete is working again âŠ
1 Like
Since that incident is now marked as resolved, Iâm going to lock this thread and repeat my advice about finding production incidents: please report them to developer support.
1 Like