{"record":{"id":"8d7c88cf8432094e","repo":"faker-ruby/faker","slug":"size-should-be-specified-in-format-300x300","errorCode":null,"errorMessage":"Size should be specified in format 300x300","messagePattern":"Size should be specified in format 300x300","errorType":"exception","errorClass":"ArgumentError","httpStatus":null,"severity":"error","filePath":"lib/faker/default/avatar.rb","lineNumber":40,"sourceCode":"      # @example\n      #   Faker::Avatar.image(slug: \"my-own-slug\")\n      #     #=> \"https://robohash.org/my-own-slug.png?size=300x300&set=set1\"\n      # @example\n      #   Faker::Avatar.image(slug: \"my-own-slug\", size: \"50x50\")\n      #     #=> \"https://robohash.org/my-own-slug.png?size=50x50&set=set1\"\n      # @example\n      #   Faker::Avatar.image(slug: \"my-own-slug\", size: \"50x50\", format: \"jpg\")\n      #     #=> \"https://robohash.org/my-own-slug.jpg?size=50x50&set=set1\"\n      # @example\n      #   Faker::Avatar.image(slug: \"my-own-slug\", size: \"50x50\", format: \"bmp\")\n      #     #=> \"https://robohash.org/my-own-slug.bmp?size=50x50&set=set1\"\n      # @example\n      #   Faker::Avatar.image(slug: \"my-own-slug\", size: \"50x50\", format: \"bmp\", set: \"set1\", bgset: \"bg1\")\n      #     #=> \"https://robohash.org/my-own-slug.bmp?size=50x50&set=set1&bgset=bg1\"\n      #\n      # @faker.version 1.4.3\n      def image(slug: nil, size: '300x300', format: 'png', set: 'set1', bgset: nil)\n        raise ArgumentError, 'Size should be specified in format 300x300' unless size =~ /\\A[0-9]+x[0-9]+\\z/\n        raise ArgumentError, \"Supported formats are #{SUPPORTED_FORMATS.join(', ')}\" unless SUPPORTED_FORMATS.include?(format)\n\n        slug ||= Faker::Lorem.words.join\n        bgset_query = \"&bgset=#{bgset}\" if bgset\n        \"https://robohash.org/#{slug}.#{format}?size=#{size}&set=#{set}#{bgset_query}\"\n      end\n    end\n  end\nend\n","sourceCodeStart":22,"sourceCodeEnd":50,"githubUrl":"https://github.com/faker-ruby/faker/blob/cca4184947e09fdd02afb8b89d25a9c8ebc7274e/lib/faker/default/avatar.rb#L22-L50","documentation":"Error \"Size should be specified in format 300x300\" thrown in faker-ruby/faker.","triggerScenarios":"Thrown at lib/faker/default/avatar.rb:40 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"cca4184947e09fdd02afb8b89d25a9c8ebc7274e","analyzedAt":"2026-08-21T16:25:39.145Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}