tursodatabase/turso · error · NotSupportedException

Writing is not supported.

Error message

Writing is not supported.

What it means

Error "Writing is not supported." thrown in tursodatabase/turso.

Source

Thrown at bindings/dotnet/src/Turso.Data.Sqlite/SqliteBlob.cs:94

            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;

        var stream = GetStream();
        if (stream.Position + count > stream.Length)
            throw new NotSupportedException(Properties.Resources.ResizeNotSupported);

        stream.Write(buffer, offset, count);
        Persist();
    }

    protected override void Dispose(bool disposing)
    {
        if (disposing && !_disposed)
            _stream?.Dispose();

View on GitHub (pinned to bad083fafb)

When it happens

Trigger: Thrown at bindings/dotnet/src/Turso.Data.Sqlite/SqliteBlob.cs:94 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/68bcf5bc9ffa0d79. Report an issue: GitHub.