Asp.Net Core: Received unexpected backend message DataRow. Please file a bug.

Apr 15 2021 74

I created a website. I use some tech as below:

- Asp.Net Core 3.1, PostgreSQL, using Dapper to connect the database.

Everything work very well. But it only well with some small traffic. When I push large traffic it throws many exceptions: Received unexpected backend message DataRow. Please file a bug.

System.Exception: Received unexpected backend message DataRow. Please file a bug.
   at Npgsql.NpgsqlConnector.UnexpectedMessageReceived(BackendMessageCode received)
   at Npgsql.NpgsqlDataReader.ProcessDataRowMessage(DataRowMessage msg)
   at Npgsql.NpgsqlDataReader.ProcessMessage(IBackendMessage msg)
   at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
   at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior, Boolean async, CancellationToken cancellationToken)
   at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior, Boolean async, CancellationToken cancellationToken)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken)
   at Dapper.SqlMapper.QueryAsync[T](IDbConnection cnn, Type effectiveType, CommandDefinition command) in /_/Dapper/SqlMapper.Async.cs:line 418

I read that message but it difficult to understand. Please suggest me if you know any solution.

Have 1 answer(s) found.
  • P

    Palakorn Sangketchon Apr 15 2021

    I got the same error when having many traffic visited my site.

    This error throw base on other bugs.  Maybe have too many connections access to DB at the same time. 

    In my site also throw some other exception such as "A command is already in progress" and when I fixed them this bug also resolved.

    Please check other bugs related to DB and resolve them before fixing this bug.

Leave An Answer
* NOTE: You need Login before leave an answer

* Type maximum 2000 characters.

* All comments have to wait approved before display.

* Please polite comment and respect questions and answers of others.

Popular Tips

X Close