{"record":{"id":"9e4bb7e830d7ce62","repo":"bitwarden/server","slug":"your-location-wasn-t-recognized-please-ensure-you","errorCode":null,"errorMessage":"Your location wasn't recognized. Please ensure your country and postal code are valid.","messagePattern":"Your location wasn't recognized\\. Please ensure your country and postal code are valid\\.","errorType":"exception","errorClass":"BadRequestException","httpStatus":400,"severity":"error","filePath":"bitwarden_license/src/Commercial.Core/Billing/Providers/Services/ProviderBillingService.cs","lineNumber":723,"sourceCode":"                {\n                    Status: SubscriptionStatus.Active or SubscriptionStatus.Trialing\n                })\n            {\n                return subscription;\n            }\n\n            logger.LogError(\n                \"Newly created provider ({ProviderID}) subscription ({SubscriptionID}) has inactive status: {Status}\",\n                provider.Id,\n                subscription.Id,\n                subscription.Status);\n\n            throw new BillingException();\n        }\n        catch (StripeException stripeException) when (stripeException.StripeError?.Code ==\n                                                      ErrorCodes.CustomerTaxLocationInvalid)\n        {\n            throw new BadRequestException(\n                \"Your location wasn't recognized. Please ensure your country and postal code are valid.\");\n        }\n    }\n\n    public async Task UpdateSeatMinimums(UpdateProviderSeatMinimumsCommand command)\n    {\n        var (provider, updatedPlanConfigurations) = command;\n\n        if (updatedPlanConfigurations.Any(x => x.SeatsMinimum < 0))\n        {\n            throw new BadRequestException(\"Provider seat minimums must be at least 0.\");\n        }\n\n        var subscription = await subscriberService.GetSubscriptionOrThrow(provider);\n\n        var subscriptionItemOptionsList = new List<SubscriptionItemOptions>();\n\n        var providerPlans = await providerPlanRepository.GetByProviderId(provider.Id);","sourceCodeStart":705,"sourceCodeEnd":741,"githubUrl":"https://github.com/bitwarden/server/blob/e93b962371d80964556f5590c6615f5160a437a1/bitwarden_license/src/Commercial.Core/Billing/Providers/Services/ProviderBillingService.cs#L705-L741","documentation":"Error \"Your location wasn't recognized. Please ensure your country and postal code are valid.\" thrown in bitwarden/server.","triggerScenarios":"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.","commonSituations":"See trigger scenarios.","solutions":["Verify the billing country selection matches the actual country of the postal address.","Re-enter the postal code in the correct format for that country (correct length and alphanumeric pattern).","Clear cached address fields in the client and submit the address again.","If a valid address is rejected, contact Bitwarden support to correct the billing location."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e93b962371d80964556f5590c6615f5160a437a1","analyzedAt":"2026-08-13T14:22:19.382Z","schemaVersion":2},"datasetVersion":"2026-08-13T19:17:28.613Z"}