Skip to content

License renewal fails with 500 (NoMethodError in find_user_by_bp_username) #35

@jvendetti

Description

@jvendetti

A user reported they can't renew their license:

Hi all, I have an issue renewing my licence. I get the following message when I submit the licence form: We're sorry but something went wrong

Sanitized stack trace from the production log file:

I, [2026-05-21T01:32:51.932509 #138756]  INFO -- : [REQUEST_ID] Started POST "/licenses" at 2026-05-21 01:32:51 -0700
I, [2026-05-21T01:32:51.933264 #138756]  INFO -- : [REQUEST_ID] Processing by LicensesController#create as HTML
I, [2026-05-21T01:32:51.933364 #138756]  INFO -- : [REQUEST_ID]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"[REDACTED]", "license"=>{"appliance_id"=>"[REDACTED-UUID]", "first_name"=>"[REDACTED]", "last_name"=>"[REDACTED]", "organization"=>"[REDACTED]", "license_purpose_id"=>"2", "project_info"=>"[REDACTED]", "reason"=>"Continuing operations"}, "update"=>"Create License"}
I, [2026-05-21T01:32:52.893302 #138756]  INFO -- : [REQUEST_ID] Completed 500 Internal Server Error in 960ms (ActiveRecord: 0.0ms)
F, [2026-05-21T01:32:52.894257 #138756] FATAL -- : [REQUEST_ID]   
F, [2026-05-21T01:32:52.894357 #138756] FATAL -- : [REQUEST_ID] NoMethodError (undefined method `first' for nil:NilClass):
F, [2026-05-21T01:32:52.894424 #138756] FATAL -- : [REQUEST_ID]   
F, [2026-05-21T01:32:52.894496 #138756] FATAL -- : [REQUEST_ID] app/helpers/application_helper.rb:11:in `find_user_by_bp_username'
[REQUEST_ID] app/controllers/licenses_controller.rb:257:in `validate'
[REQUEST_ID] app/controllers/licenses_controller.rb:196:in `save_license_from_params'
[REQUEST_ID] app/controllers/licenses_controller.rb:88:in `create'

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions