serilog-sinks-azuretablestorage icon indicating copy to clipboard operation
serilog-sinks-azuretablestorage copied to clipboard

Getting 409 error when creating table entries

Open stuartp22 opened this issue 1 year ago • 0 comments

When my logger writes a new entry to table storage, a 409 followed by a 204 is returned and the entry is saved.

My issue seems to be identical to #42 which was fixed: https://github.com/serilog-contrib/serilog-sinks-azuretablestorage/pull/87

This is my code

Log.Logger = new LoggerConfiguration()
                .WriteTo.AzureTableStorage("UseDevelopmentStorage=true",storageTableName:"SerilogDemo",writeInBatches:false)
                .CreateLogger();

Log.Information("Error logged {errorDesc}", errorVariable);

I've also tried setting bypassTableCreationValidation:true but still get the 409s. If I set a new table name then the table is created and the 409 does not appear.

I'm using Serilog 4.00 and Serilog.Sinks.AzureTableStorage 9.7.1

Have I missed something obvious I should have done to avoid this?

Thanks

stuartp22 avatar Jun 17 '24 15:06 stuartp22