Empty 400 Bad Request response with .Net Core 3.1

Dear Radzen team,

I just noticed that with Net Core version 3.1 Im getting empty 400 responses with no error and message JSONs.

I did clean install and created very basic app. Im getting this behaviour when trying to login with wrong username or password or create user with a password violating password rules. I am using standard auth schema provided by radzen with local MySQL db.

With version 2.2. eveything works as expected and 400 responses contain JSON with message and error fileds.

Please advise if I can tweak server side in my project to have 400 responses with error message. Or this is normal behaviour for 3.1?

Thanks,

Jose

Thanks for the report @Jose! We will check what's going on and we will publish a fix next week.

Hi @Jose,

We’ve just released update for Radzen with fix for this problem included.

Best Regards,
Vladimir

Hi, I'm have a problem may be related to this. I had an angular app with .net core 3.1 running fine in development (windows) but, when I deploy it to a linux machine, auth/login response a 400 error. Security is standard.
I tried a blazor app alternative and receive same error.

My actual Radzen version is 2.42.3. Next version fix this issue?

Thanks

Hi @Carlos_Carminati,

Is it empty response? The issue reported in this thread was fixed - empty response on 400 status when entering for example wrong user and password.

Hi. I worked with app and actually I have a 500 error when try to login. Error messages in journal:

Jan 29 11:35:57 ubuntu-s-1vcpu-1gb-sfo2-01 capgrt[892]: at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
Jan 29 11:35:57 ubuntu-s-1vcpu-1gb-sfo2-01 capgrt[892]: Exception data:
Jan 29 11:35:57 ubuntu-s-1vcpu-1gb-sfo2-01 capgrt[892]: Severity: ERROR
Jan 29 11:35:57 ubuntu-s-1vcpu-1gb-sfo2-01 capgrt[892]: SqlState: 42P07
Jan 29 11:35:57 ubuntu-s-1vcpu-1gb-sfo2-01 capgrt[892]: MessageText: relation "AspNetRoles" already exists
Jan 29 11:35:57 ubuntu-s-1vcpu-1gb-sfo2-01 capgrt[892]: File: heap.c
Jan 29 11:35:57 ubuntu-s-1vcpu-1gb-sfo2-01 capgrt[892]: Line: 1122
Jan 29 11:35:57 ubuntu-s-1vcpu-1gb-sfo2-01 capgrt[892]: Routine: heap_create_with_catalog
Jan 29 11:35:57 ubuntu-s-1vcpu-1gb-sfo2-01 capgrt[892]: info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Jan 29 11:35:57 ubuntu-s-1vcpu-1gb-sfo2-01 capgrt[892]: Request finished in 95.9487ms 500 text/plain

Why ["AspNetRoles" already exists ] error occurs?

Thanks in advance

In this case the error is completely different and not related to this thread. You've upgraded your existing 2.2 app to .NET Core 3.1?

Is a new app created after upgrade to .Net Core 3.1. It's my first deploy on Ubuntu with Postgresql database. I followed many docs to ensure right version of Posgresql (version 12), installed spanish collate, etc. App run fine in development with login. On Ubuntu server I populated AspNetRoles, AspNetUsers and AspNetUserRoles using a script. May be I missing something?

These tables are populated by migrations also located in server/Data/Migrations. You need to delete these migrations if you are populating these tables by yourself.

Also add the server\Data\Migrations directory to Radzen's code generation ignore list.

Thanks! It's working now.