bitwarden/server · error · BadRequestException

Your location wasn't recognized. Please ensure your country

Error message

Your location wasn't recognized. Please ensure your country and postal code are valid.

What it means

Error "Your location wasn't recognized. Please ensure your country and postal code are valid." thrown in bitwarden/server.

Source

Thrown at bitwarden_license/src/Commercial.Core/Billing/Providers/Services/ProviderBillingService.cs:723

                {
                    Status: SubscriptionStatus.Active or SubscriptionStatus.Trialing
                })
            {
                return subscription;
            }

            logger.LogError(
                "Newly created provider ({ProviderID}) subscription ({SubscriptionID}) has inactive status: {Status}",
                provider.Id,
                subscription.Id,
                subscription.Status);

            throw new BillingException();
        }
        catch (StripeException stripeException) when (stripeException.StripeError?.Code ==
                                                      ErrorCodes.CustomerTaxLocationInvalid)
        {
            throw new BadRequestException(
                "Your location wasn't recognized. Please ensure your country and postal code are valid.");
        }
    }

    public async Task UpdateSeatMinimums(UpdateProviderSeatMinimumsCommand command)
    {
        var (provider, updatedPlanConfigurations) = command;

        if (updatedPlanConfigurations.Any(x => x.SeatsMinimum < 0))
        {
            throw new BadRequestException("Provider seat minimums must be at least 0.");
        }

        var subscription = await subscriberService.GetSubscriptionOrThrow(provider);

        var subscriptionItemOptionsList = new List<SubscriptionItemOptions>();

        var providerPlans = await providerPlanRepository.GetByProviderId(provider.Id);

View on GitHub (pinned to e93b962371)

Solutions

  1. Verify the billing country selection matches the actual country of the postal address.
  2. Re-enter the postal code in the correct format for that country (correct length and alphanumeric pattern).
  3. Clear cached address fields in the client and submit the address again.
  4. If a valid address is rejected, contact Bitwarden support to correct the billing location.

When it happens

Trigger: Thrown when the country or postal code supplied for a provider's billing address cannot be validated, e.g., an unrecognized country code or a postal code that does not match the country's format.

Common situations: See trigger scenarios.


AI-assisted analysis of bitwarden/server@e93b962371 (2026-08-13). Data as JSON: /api/errors/9e4bb7e830d7ce62. Report an issue: GitHub.