-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error null reference in get request from dapp exchange intro file Sto… #197
Conversation
…re method Set property map
Hey @MassoudKargar, Thank you for the PR! Could you please explain what exact issue it solves? The map is statically initialized, so I'm curious about the conditions that result in the null reference. |
I was programming an inter-voltage connection that I wrote myself with a dapp exchange like pancakeswap, and when I received the eth_sendTransaction event, I was getting an error and I couldn't continue, and the system didn't react at all, that's why I started debugging your system and realized the problem. I think it is because of the new system of Asp .net 8 about enable that this feature has created the issue. |
I am trying to understand why the map is null for you. It is automatically initialized with an empty dictionary when an instance of the While your suggestion fixes the error message, you may encounter more issues later because you are operating on a disposed Could you share your code or explain how you initialize the SDK and handle session requests? |
I am programming in blazor webassembly application And I get this error Debugging hotkey: Shift+Alt+D (when application has focus) And this is my code @page "/" Home Hello, world!@if (dataset) { }Welcome to your new app.
} |
@MassoudKargar I believe the issue might be in your |
I did not understand exactly, can you give me a sample code or give an example please? |
@MassoudKargar from your code: public async Task OnConnectUrl()
{
if (client != null)
{
try
{
client.PendingRequests.Dispose(); // ← REMOVE
client.SessionProposed += SessionProposed;
proposalStruct = await client.Pair(Uri);
}
catch (Exception e)
{
Console.WriteLine(e);
}
}
} |
Thanks, the problem is solved, but I don't remember why I used such a code. Swap failed: Unknown error: "Request expired. Please try again.". Try increasing your slippage tolerance. |
@MassoudKargar could you please open an issue? In the issue please specify if you're building a wallet or an app. |
…re method Set property map