department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
283 stars 205 forks source link

Sentry Error: "expect the argument to be a String, got Hash" - 674 manual submission #91034

Closed steele-lm closed 2 months ago

steele-lm commented 3 months ago

Issue Description

Sentry exception error: Unable to create_note: expect the argument to be a String, got Hash ({:clm_id=>"110259379", :txt=>"Claim set to manual by VA.gov: This application needs manual review because a 674 was submitted."}): try 1 of 3" List of all Sentry instances can be seen here.

The code is crashing and no monitor is going off.


Tasks

Acceptance Criteria

evansmith commented 2 months ago

I have a theory that this may be related to what @tfink419 was investigating and is caused by this line log_message_to_sentry(message, :info, {}, { team: 'vfs-ebenefits' }) in the create_note method. message is a sliced hash wtih clm_id and txt. cc @sanjabaj2 @mjknight50 @tblackwe

evansmith commented 2 months ago

This has been deployed to production and has had no errors in the past hour since deployment.