I am using gun.path('something.something') to insert some data in gun users space:
let somevalue = { privateKey: 'xxx', mnemonic:'y y y', address:'zzz' ,... }gun.user().path('something.something').put(somevalue)
It worked fine for some days but after I logged out using gun.user.leave() and logged in again, I saw my privateKey was completely lost(both the key and value) but when I tried to reproduce it by creating new users and logging in and out subsequently, I don't find the issue again. The strange thing which I noticed is that - for some users, their address is lost and for some users their privateKey was lost.
I am using my own relay node server with axe disabled (as with axe enable I can't put my data from my relay server).
Also there is nothing suspicious in the relay server logs.
I don't know what exactly is causing the issue but yes, it was an unexpected behavior.
I think this might have been related to a cache invalidation bug handling a cache miss edge case. Can you upgrade to latest and see if it fixes your issue?
I am using gun.path('something.something') to insert some data in gun users space:
let somevalue = { privateKey: 'xxx', mnemonic:'y y y', address:'zzz' ,... }
gun.user().path('something.something').put(somevalue)
It worked fine for some days but after I logged out using gun.user.leave() and logged in again, I saw my privateKey was completely lost(both the key and value) but when I tried to reproduce it by creating new users and logging in and out subsequently, I don't find the issue again. The strange thing which I noticed is that - for some users, their address is lost and for some users their privateKey was lost. I am using my own relay node server with axe disabled (as with axe enable I can't put my data from my relay server). Also there is nothing suspicious in the relay server logs.
I don't know what exactly is causing the issue but yes, it was an unexpected behavior.