{"record":{"id":"ff087d49ce41fa35","repo":"flippercloud/flipper","slug":"unexpected-response-code-response-code-request","errorCode":null,"errorMessage":"Unexpected response code=#{response.code} request_id=#{request_id}","messagePattern":"Unexpected response code=#(.+?) request_id=#(.+?)","errorType":"exception","errorClass":"Flipper::Cloud::Telemetry::Submitter::Error","httpStatus":null,"severity":"error","filePath":"lib/flipper/cloud/telemetry/submitter.rb","lineNumber":92,"sourceCode":"            sleep @backoff_policy.next_interval.to_f / 1000\n            retry_with_backoff attempts_remaining, &block\n          else\n            [result, caught_exception]\n          end\n        end\n\n        def submit(body)\n          client = @cloud_configuration.http_client\n          client.add_header \"schema-version\", SCHEMA_VERSION\n          client.add_header \"content-encoding\", GZIP_ENCODING\n\n          response = client.post PATH, body\n          code = response.code.to_i\n\n          # Raise error and retry for retriable status codes.\n          # FIXME: what about redirects?\n          if code < 200 || code == 429 || code >= 500\n            raise Error.new(request_id, response)\n          end\n\n          response\n        end\n      end\n    end\n  end\nend\n","sourceCodeStart":74,"sourceCodeEnd":101,"githubUrl":"https://github.com/flippercloud/flipper/blob/1f86de3ec91521585b156445e156642938b19cb0/lib/flipper/cloud/telemetry/submitter.rb#L74-L101","documentation":"Error \"Unexpected response code=#{response.code} request_id=#{request_id}\" thrown in flippercloud/flipper.","triggerScenarios":"Thrown at lib/flipper/cloud/telemetry/submitter.rb:92 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check Flipper Cloud status and your token; a non-2xx response usually means auth failure or a service issue","Retry the submission; transient 5xx responses are handled by the backoff policy automatically","Verify the configured Cloud URL points to the correct environment and uses https"],"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"}