Base solution for your next web application
Open Closed

Getting WARN log "AbpDefaultRequestCultureProvider returned the following unsupported cultures 'null'" #5848


User avatar
0
Ricavir created

Hi,

I'm using Aspnetcore + angular on version v5.5.. While lokking to app logs, I have a lot of WARN lines after signalr connection or impersonated connection.

LOG LINES are :

  • AFTER IMPERSONATED connection
  • calization.RequestLocalizationMiddleware - AbpLocalizationHeaderRequestCultureProvider returned the following unsupported cultures 'null'.
  • calization.RequestLocalizationMiddleware - AbpLocalizationHeaderRequestCultureProvider returned the following unsupported UI Cultures 'null'.
  • AFTER SIGNALR connection
  • calization.RequestLocalizationMiddleware - AbpUserRequestCultureProvider returned the following unsupported cultures 'null'.
  • calization.RequestLocalizationMiddleware - AbpUserRequestCultureProvider returned the following unsupported UI Cultures 'null'.
  • calization.RequestLocalizationMiddleware - AbpDefaultRequestCultureProvider returned the following unsupported cultures 'null'.
  • calization.RequestLocalizationMiddleware - AbpDefaultRequestCultureProvider returned the following unsupported UI Cultures 'null'.

I'm getting these logs on my local server and on AZURE as well

How can I fix this ?


4 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @ricavir,

    AbpLocalizationHeaderRequestCultureProvider checks the request header to find the culture. Request header must contain ".AspNetCore.Culture" key with the correct value.

    If this request header doesn't exist, ABP will look for other things to determine the language, see https://aspnetboilerplate.com/Pages/Documents/Localization#how-the-current-language-is-determined.

    So, I guess this is not a problem.

  • User Avatar
    0
    Ricavir created

    OK

    As I'm trying to find performance issues, I'm digging over log files. I was wondering why I had so much warns about localization.

    Tks

  • User Avatar
    0
    BobIngham created

    Hi @ismcagdas, could we possibly downgrade the level to INFO?

    So, I guess this is not a problem.

    If it's not a problem you shouldn't need to warn us about it. There is a lot of noise in the logs from this warning message. I'm in "digging through log files" at the moment... It may be because I use an Ionic app to sign in.

  • User Avatar
    0
    venkat created

    Even I am noticing so many warnings (below), this is causing log file grow very fast. I am pretty sure this will have impact of the site performance does anyone know how to solve this issue?

    WARN 2019-07-07 07:05:39,703 [9 ] calization.RequestLocalizationMiddleware - AbpUserRequestCultureProvider returned the following unsupported cultures 'null'.

    Thank you