Skip to content

OSS flag leads to runtime error #6292

@Mart124

Description

@Mart124

Steps To Reproduce

Hi,

Finally compiling with OSS flag properly works thanks to #6278.
Thank you again 👍

But then it leads to a runtime error in Api logs :

[Error] Unable to resolve service for type 'Bit.Core.Billing.Providers.Services.IBusinessUnitConverter' while attempting to activate 'Bit.Api.Billing.Controllers.OrganizationBillingController'.
System.InvalidOperationException: Unable to resolve service for type 'Bit.Core.Billing.Providers.Services.IBusinessUnitConverter' while attempting to activate 'Bit.Api.Billing.Controllers.OrganizationBillingController'.
   at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ThrowHelperUnableToResolveService(Type type, Type requiredBy)
   at lambda_method68(Closure, IServiceProvider, Object[])
   at Microsoft.AspNetCore.Mvc.Controllers.ControllerFactoryProvider.<>c__DisplayClass6_0.<CreateControllerFactory>g__CreateController|0(ControllerContext controllerContext)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()

Could you please have a look at this issue ?

Thank you very much 👍

Expected Result

No runtime error.

Actual Result

Runtime error.

Screenshots or Videos

No response

Additional Context

No response

Build Version

Last one.

Environment

Self-Hosted

Environment Details

No response

Issue Tracking Info

  • I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions