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

[production] NoMethodError: undefined method '[]' for true #4699

Open
regineheberlein opened this issue Jan 14, 2025 · 5 comments
Open

[production] NoMethodError: undefined method '[]' for true #4699

regineheberlein opened this issue Jan 14, 2025 · 5 comments
Assignees
Labels
bug 🐛 The application does not work as expected because of a defect

Comments

@regineheberlein
Copy link
Contributor

regineheberlein commented Jan 14, 2025

Observation

orangelight production throws a honeybadger error in patron.rb

The error is reported once, for patron 432774048, and traces back to patron eligibility in ill.rb.

Honeybadger link and code snippet

https://app.honeybadger.io/projects/54399/faults/116346989

NoMethodError: undefined method '[]' for true

      patron_hash[:patron_group]
@christinach
Copy link
Member

christinach commented Jan 14, 2025

@kevinreiss is this a duplicate ticket of #4679 ?

If so can you close it?

@kevinreiss
Copy link
Member

You have to obtain the patron's Alma Identifier from the Orangelight user account and then check their record in Alma to see the state of their account.

@christinach
Copy link
Member

@kevinreiss the bibdata call on the patron's netid looks ok.
What do you mean when you say the state of their account?

@christinach
Copy link
Member

christinach commented Jan 14, 2025

Slack thread Patron is undergraduate see the bibdata call based on their netid. Get their netid from the database using the user id.
They should be able to use the service. We should check why the eligibility failed.

@rladdusaw rladdusaw added the bug 🐛 The application does not work as expected because of a defect label Jan 14, 2025
@kevinreiss
Copy link
Member

Nothing seems unusual about the patron's account in Alma. This issue will require further investigation to try and identify the root cause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 The application does not work as expected because of a defect
Projects
None yet
Development

No branches or pull requests

4 participants