Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Y25-070 - [BUG] NameError while printing Plate SQPP-71192-Q from Sequencescape in Training to aa212bc2 #4648

Open
yoldas opened this issue Jan 30, 2025 · 0 comments
Labels
Bug Bug in code

Comments

@yoldas
Copy link
Member

yoldas commented Jan 30, 2025

Describe the bug
Printing SQPP-71192-Q from Sequencescape in Training to aa212bc2 caused an exception, which was received as an email notification:

Date: 30 January 2025
Subject: [Psd-exceptions] [Sequencescape Training] labware#print_assets (NameError) "undefined local variable or method `barcode' for #<Plate id: ...

The exception message from email:

A NameError occurred in labware#print_assets:

  undefined local variable or method `barcode' for #<Plate id: 27593235, name: "Plate SQPP-71192-Q", sti_type: "Plate", size: 384, public_name: nil, two_dimensional_barcode: nil, plate_purpose_id: 390, labware_type_id: nil, created_at: "2025-01-06 11:07:06.000000000 +0000", updated_at: "2025-01-06 11:07:06.000000000 +0000", retention_instruction: nil>
  app/models/barcode/barcodeable.rb:106:in `barcode!'

Backtrace from email:

 app/models/barcode/barcodeable.rb:106:in `barcode!'
  lib/label_printer/label/asset_redirect.rb:22:in `block in assets'
  lib/label_printer/label/asset_redirect.rb:22:in `each'
  lib/label_printer/label/asset_redirect.rb:22:in `assets'
  lib/label_printer/label/asset_redirect.rb:13:in `labels'
  lib/label_printer/print_job.rb:51:in `labels_attribute'
  lib/label_printer/print_job.rb:43:in `build_attributes'
  lib/label_printer/print_job.rb:24:in `execute'
  app/controllers/labware_controller.rb:118:in `print_assets'

RT Ticket Number
N/A

To Reproduce
Steps to reproduce the behaviour:
Print as described above.

Expected behaviour
No exceptions thrown.

Screenshots

Image

Desktop (please complete the following information):
N/A

Additional context
This error occurred during a printing test of the story sanger/limber#2190

@yoldas yoldas added the Bug Bug in code label Jan 30, 2025
@psd-issuer psd-issuer bot changed the title [BUG] NameError while printing Plate SQPP-71192-Q from Sequencescape in Training to aa212bc2 Y25-070 - [BUG] NameError while printing Plate SQPP-71192-Q from Sequencescape in Training to aa212bc2 Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug in code
Projects
None yet
Development

No branches or pull requests

1 participant