Open Closed

The type 'System.Object' is not a supported dictionary key using converter of type 'System.Text.Json.Serialization.Converters.DefaultObjectConverter' #7985


User avatar
0
dfzamora created
  • ABP Framework version: v8.2.1
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace: The type 'System.Object' is not a supported dictionary key using converter of type 'System.Text.Json.Serialization.Converters.DefaultObjectConverter'. Path: $.Error.Data. The type 'System.Object' is not a supported dictionary key using converter of type 'System.Text.Json.Serialization.Converters.DefaultObjectConverter'.
  • Steps to reproduce the issue:
  • Hello I have an application running on Azure, when I userFriendlyException is thrown the server is returning 500 error, I have enabled application Insights and this is what I have

The exception System.NotSupportedException, seems to be happening in Volo.Abp.AspNetCore.Serilog.AbpSerilogMiddleware

Based on this documentation I have tried to include Newtonsoft because I though the issue was related to serialization, I added the package Volo.Abp.Json.Newtonsoft and AbpJsonNewtonsoftModule dependency on HttpApi, HttpApi.Host and Application modules, but this is not fixing the issue,

These are the packages contained in HttpApi.host

This issue is only happening on Azure (release environment), locally it is working with no issue at all Both environment are working with net8,

I would appreciate if you can help me with this issue, thanks!


No answer yet!
Made with ❤️ on ABP v9.0.0-preview Updated on September 25, 2024, 05:13