{"record":{"id":"ce8eea847a660353","repo":"flippercloud/flipper","slug":"flipper-cloud-url-must-use-https-but-was-value","errorCode":null,"errorMessage":"Flipper::Cloud url must use https but was #{value.inspect}. https is required so your token is never sent in cleartext.","messagePattern":"Flipper::Cloud url must use https but was #(.+?)\\. https is required so your token is never sent in cleartext\\.","errorType":"exception","errorClass":"ArgumentError","httpStatus":null,"severity":"error","filePath":"lib/flipper/cloud/url_validator.rb","lineNumber":18,"sourceCode":"require \"uri\"\n\nmodule Flipper\n  module Cloud\n    module UrlValidator\n      def self.validate(value)\n        url = value.to_s.dup\n        uri = URI(url)\n\n        return url.freeze if uri.is_a?(URI::HTTPS) && !uri.host.to_s.empty?\n\n        raise_invalid_url(value)\n      rescue URI::InvalidURIError\n        raise_invalid_url(value)\n      end\n\n      def self.raise_invalid_url(value)\n        raise ArgumentError,\n          \"Flipper::Cloud url must use https but was #{value.inspect}. \" \\\n          \"https is required so your token is never sent in cleartext.\"\n      end\n      private_class_method :raise_invalid_url\n    end\n    private_constant :UrlValidator\n  end\nend\n","sourceCodeStart":1,"sourceCodeEnd":27,"githubUrl":"https://github.com/flippercloud/flipper/blob/1f86de3ec91521585b156445e156642938b19cb0/lib/flipper/cloud/url_validator.rb#L1-L27","documentation":"Error \"Flipper::Cloud url must use https but was #{value.inspect}. https is required so your token is never sent in cleartext.\" thrown in flippercloud/flipper.","triggerScenarios":"Thrown at lib/flipper/cloud/url_validator.rb:18 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Change the Flipper Cloud URL to use https:// instead of http://","Remove the custom URL override to use the default https endpoint","If testing against a local mock, do so only in test config, never production"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"1f86de3ec91521585b156445e156642938b19cb0","analyzedAt":"2026-08-23T04:36:09.896Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}