Surreal-Net / Surreal.Net

Database driver for SurrealDB available for REST and RPC sessions.
Apache License 2.0
57 stars 7 forks source link

Bug: SurrealDB.Driver.RPC System.Text.Json.JsonException with long responses. #121

Closed maarlo closed 1 year ago

maarlo commented 1 year ago

Describe the bug

Using SurrealDB.Driver.RPC and requesting for a large bulk of data it throws a System.Text.Json.JsonException with a message like ''x' is an invalid end of a sometihing. Expected a delimiter..

Using SurrealDB.Driver.REST it works properly.

Steps to reproduce

  1. Fill one table of the database with lots of data (at least two thousand objects)
  2. Request all the data

Expected behaviour

Do not receive the Exception from System.Text.Json.JsonException.

Surreal.NET driver version

1.0.8

SurrealDB version

surreal 1.0.0-beta.8+20220930.c246533 for linux on x86_64

Is there an existing issue for this?

maarlo commented 1 year ago

After testing it with develop branch it seems that the problem is solved.