tursodatabase/turso · error · IOException
An attempt was made to seek before the beginning of the stre
Error message
An attempt was made to seek before the beginning of the stream.
What it means
Error "An attempt was made to seek before the beginning of the stream." thrown in tursodatabase/turso.
Source
Thrown at bindings/dotnet/src/Turso.Data.Sqlite/SqliteBlob.cs:80
public override int Read(byte[] buffer, int offset, int count)
{
ValidateBuffer(buffer, offset, count);
return GetStream().Read(buffer, offset, count);
}
public override long Seek(long offset, SeekOrigin origin)
{
var stream = GetStream();
var position = origin switch
{
SeekOrigin.Begin => offset,
SeekOrigin.Current => stream.Position + offset,
SeekOrigin.End => stream.Length + offset,
_ => throw new ArgumentException(Properties.Resources.InvalidEnumValue(typeof(SeekOrigin), origin), nameof(origin))
};
if (position < 0)
throw new IOException(Properties.Resources.SeekBeforeBegin);
stream.Position = position;
return position;
}
public override void SetLength(long value)
{
throw new NotSupportedException(Properties.Resources.ResizeNotSupported);
}
public override void Write(byte[] buffer, int offset, int count)
{
if (_readOnly)
throw new NotSupportedException(Properties.Resources.WriteNotSupported);
ValidateBuffer(buffer, offset, count);
if (count == 0)
return;View on GitHub (pinned to bad083fafb)
When it happens
Trigger: Thrown at bindings/dotnet/src/Turso.Data.Sqlite/SqliteBlob.cs:80 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of tursodatabase/turso@bad083fafb (2026-08-16).
Data as JSON: /api/errors/777e2cf69cddfeef.
Report an issue: GitHub.