Coder Social home page Coder Social logo

Comments (2)

choby avatar choby commented on May 28, 2024

Applications often make errors after a recent upgrade to.NET 8, I found that if I used tojson() to map jsonb fields, I encountered this problem when I manually enabled multiple UnitOfWorks, and I didn't encounter this problem when I fell back on the tojson() method to HasColumnType("jsonb"). Also note that I made an http request in the UnitOfWork:

Npgsql.NpgsqlException: Exception while writing to stream
---> System.IO.IOException: Unable to write data to the transport connection: Operation canceled.
---> System.Net.Sockets.SocketException: Operation canceled
at Npgsql.Internal.NpgsqlWriteBuffer.d__32.MoveNext() at offset 282
--- End of inner exception stack trace ---
at Npgsql.Internal.NpgsqlWriteBuffer.d__32.MoveNext() at offset 682
at Npgsql.NpgsqlCommand.<g__WriteExecute|100_0>d.MoveNext() at offset 1709
at Npgsql.NpgsqlCommand.d__119.MoveNext() at offset 1155
at Npgsql.NpgsqlCommand.d__107.MoveNext() at offset 146
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.d__14.MoveNext() at offset 779
at Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.d__17.MoveNext() at offset 279

When this error occurs, the database fails to log the error log most of the time, Occasionally, however, the following errors are recorded:
ERROR: SAVEPOINT can only be used in transaction blocks

And this problem seems to exist only in certain scenarios, for example, I run it perfectly in debug mode on my macbook, but I run it 3-4 times out of 10 on ubuntu

pgsql: 14
system: ubuntu 22.04
.net: 8.0
efcore 8.0
efcore.pg:8.0.2
abp:8.0.5

from abp.

maliming avatar maliming commented on May 28, 2024

hi

This doesn't seem to be related to abp.

If you can reproduce this problem with some code or a simple project, Please share them,

Thanks.

from abp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.