You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During FileSystemStorage.Load, if the store.json fails to deserialize it is renamed to .unsupported:
catch (JsonSerializationException e)
{
// Move the file to a .unsupported file
// and start fresh
File.Move(FilePath, FilePath + ".unsupported");
Entries = new Dictionary<string, object>();
}
If it fails again in the future, File.Move will throw the following exception:
System.IO.IOException: Cannot create a file when that file already exists
at System.IO.FileSystem.MoveFile
at System.IO.File.Move
at WalletConnectSharp.Storage.FileSystemStorage.Load
at WalletConnectSharp.Core.Core.Initialize
at WalletConnectSharp.Core.Core.Start
at WalletConnectSharp.Sign.WalletConnectSignClient.Initialize
at WalletConnectSharp.Sign.WalletConnectSignClient.Init
The text was updated successfully, but these errors were encountered:
Executus
changed the title
Storage throwing exception when .unsupported file exists
Storage throwing exception when store.json.unsupported file exists
Mar 17, 2023
During
FileSystemStorage.Load
, if the store.json fails to deserialize it is renamed to .unsupported:If it fails again in the future,
File.Move
will throw the following exception:The text was updated successfully, but these errors were encountered: