Skip to content

Bug: Timeout on set method with a nullable recordIdOf<string>? #196

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

Open
2 tasks done
AdaptGit opened this issue May 20, 2025 · 0 comments · May be fixed by #197
Open
2 tasks done

Bug: Timeout on set method with a nullable recordIdOf<string>? #196

AdaptGit opened this issue May 20, 2025 · 0 comments · May be fixed by #197
Labels
bug Something isn't working GitHub Bug

Comments

@AdaptGit
Copy link

Describe the bug

A class that contains a nullable RecordIdOf? timeouts when null.

Image

Steps to reproduce

Create a class with a nullable RecordIdOf? then use the set method creates a timeout

class testClass
{
    public RecordIdOf<string>? recordId { get; set; } = null;
}

then try use the surreal db set method.

var surrealDbClient = new SurrealDbClient(localConnection);
await surrealDbClient.Connect();

//this succesfully works.
RecordIdOf<string> recordId = null;
await surrealDbClient.Set("test1", recordId);

//this works too.
RecordIdOf<string> newRecord = new RecordIdOf<string>("test", "test");
testClass notNull = new testClass();
notNull.recordId = newRecord;
await surrealDbClient.Set("test2", notNull);


//this timeouts.
testClass nullableTest = new testClass();
await surrealDbClient.Set("timeoutTest", nullableTest);

Expected behaviour

this should not timeout and set the parameter correctly

SurrealDB version

2.3.0 for macos on aarch64

Package version(s)

coverlet.collector 3.2.0 3.2.0
Dahomey.Cbor 1.24.3 1.24.3
Microsoft.NET.Test.Sdk 17.5.0 17.5.0
NUnit 3.13.3 3.13.3
NUnit.Analyzers 3.6.1 3.6.1
NUnit3TestAdapter 4.4.2 4.4.2
Dahomey.Cbor 1.24.3 1.24.3
Dahomey.Cbor 0.8.0 0.8.0

Contact Details

No response

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@AdaptGit AdaptGit added the bug Something isn't working label May 20, 2025
@linear linear bot added the GitHub Bug label May 20, 2025
@Odonno Odonno linked a pull request May 20, 2025 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working GitHub Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant