Starts in:
1 DAY
3 HRS
57 MIN
56 SEC
Starts in:
1 D
3 H
57 M
56 S
Open Closed

The feature store returning null value while data is available. #8305


User avatar
0
imranStem created

I have one library and I am using the Feature Store GetOrNullAsync but it returning the null value and when I debug the code and check the Results View, the data is there.

  • ABP Framework version: v8.1.3
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

3 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Sorry, but this information is not enough to reproduce the problem.

    Could you please share the full steps? thanks.

    BTW, I recommend you to write to the log to troubleshoot the issue.

  • User Avatar
    0
    imranStem created

    I have created one abp module class library where I need to fetch the features, I am already fetching the setting and setting is working fine. I have added Volo.Abp.Features reference in the class library to get the required features.

    In the class, I injected ISettingStore settingStore, IFeatureStore featureStore.

    When I get the setting from the settingStore then I am getting the setting value but when I am using the featureStore to get the feature, it returning the null value. I am not able to fetch the feature values from feature store.

    Do I need to add dependency of AbpFeaturesModule ?

    [DependsOn(typeof(AbpFeaturesModule))]

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    can you share the full logs?

    and you can add some logs. for example:

    var testValue = await _featoreStore.GetOrNullAsync(..)
    logger.LogInformation($"feature name {name} providerName {providerName} ProvderKey ...")
    
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06