Error
Scout error group 123521 (production, 2026-08-18 17:38 UTC, 1 occurrence):
NoMethodError: undefined method 'parameterize' for nil
Request: GET https://www.opensplittime.org/api/v1/event_groups/1088/not_expected
Cause
Api::V1::EventGroupsController#not_expected passes params[:split_name] straight to FindNotExpectedBibs, whose initializer calls split_name.parameterize unguarded (app/services/find_not_expected_bibs.rb:13). When the client omits split_name, the call crashes with a 500 before the service's own validation can run.
Expected behavior
A missing or unknown split name should produce the service's normal 422 response ("invalid split name" via validate_setup), not a 500. A minimal fix is split_name.to_s.parameterize (an empty string then fails the existing inclusion validation naturally).
🤖 Generated with Claude Code
Error
Scout error group 123521 (production, 2026-08-18 17:38 UTC, 1 occurrence):
Request:
GET https://www.opensplittime.org/api/v1/event_groups/1088/not_expectedCause
Api::V1::EventGroupsController#not_expectedpassesparams[:split_name]straight toFindNotExpectedBibs, whose initializer callssplit_name.parameterizeunguarded (app/services/find_not_expected_bibs.rb:13). When the client omitssplit_name, the call crashes with a 500 before the service's own validation can run.Expected behavior
A missing or unknown split name should produce the service's normal 422 response ("invalid split name" via
validate_setup), not a 500. A minimal fix issplit_name.to_s.parameterize(an empty string then fails the existing inclusion validation naturally).🤖 Generated with Claude Code